1 /* Copyright (c) 2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef SIMGRID_HOST_HPP
8 #define SIMGRID_HOST_HPP
16 #include <xbt/string.hpp>
17 #include <xbt/Extendable.hpp>
21 XBT_PUBLIC_CLASS Host : public simgrid::xbt::Extendable<Host> {
23 simgrid::xbt::string id_;
25 Host(std::string const& id);
27 simgrid::xbt::string const& id() const { return id_; }
28 static Host* by_name_or_null(const char* name);
29 static Host* by_name_or_create(const char* name);