X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eff13e323664f224576a26b017543955b3044b05..23a00833ef66ff4383394e3cac558a5232d4bd62:/include/simgrid/Host.hpp diff --git a/include/simgrid/Host.hpp b/include/simgrid/Host.hpp index e914303e8b..2810c162be 100644 --- a/include/simgrid/Host.hpp +++ b/include/simgrid/Host.hpp @@ -7,22 +7,30 @@ #ifndef SIMGRID_HOST_HPP #define SIMGRID_HOST_HPP +#include #include #include #include #include -#include +#include +#include namespace simgrid { -XBT_PUBLIC_CLASS Host : public simgrid::xbt::Lib { +XBT_PUBLIC_CLASS Host : +public simgrid::xbt::Extendable { + +public: + surf::Cpu *p_cpu = nullptr; + surf::NetCard *p_netcard = nullptr; + private: - std::string id_; + simgrid::xbt::string name_ = "noname"; public: - Host(std::string id); + Host(std::string const& name); ~Host(); - std::string const& id() const { return id_; } + simgrid::xbt::string const& getName() const { return name_; } static Host* by_name_or_null(const char* name); static Host* by_name_or_create(const char* name); };