X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9a02e3654bd28c13ac053247383566f54fa4498a..712c213599a4a608ff1f84b2a58f88f8f35e2b43:/include/simgrid/s4u/host.hpp diff --git a/include/simgrid/s4u/host.hpp b/include/simgrid/s4u/host.hpp index 3fcc5d95c0..ea5d00a1bf 100644 --- a/include/simgrid/s4u/host.hpp +++ b/include/simgrid/s4u/host.hpp @@ -10,14 +10,14 @@ #include -#include -#include -#include -#include +#include "xbt/Extendable.hpp" +#include "xbt/dict.h" +#include "xbt/signal.hpp" +#include "xbt/string.hpp" +#include "xbt/swag.h" -#include -#include -#include +#include "simgrid/forward.h" +#include "simgrid/s4u/forward.hpp" namespace simgrid { @@ -67,6 +67,7 @@ public: static s4u::Host *current(); simgrid::xbt::string const& name() const { return name_; } + const char* cname() { return name_.c_str(); } /** Turns that host on if it was previously off * @@ -101,6 +102,8 @@ public: */ boost::unordered_map const &mountedStorages(); + void routeTo(Host * dest, std::vector * links, double* latency); + private: simgrid::xbt::string name_ = "noname"; boost::unordered_map *mounts = nullptr; // caching