X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bc08348d5094ea3a908be4ab825efb1cc98dc332..c1ced69678f2c9b86032a7a6460993ca96da265a:/include/simgrid/s4u/host.hpp diff --git a/include/simgrid/s4u/host.hpp b/include/simgrid/s4u/host.hpp index 3fcc5d95c0..9a70662136 100644 --- a/include/simgrid/s4u/host.hpp +++ b/include/simgrid/s4u/host.hpp @@ -10,10 +10,10 @@ #include -#include -#include -#include #include +#include +#include +#include #include #include @@ -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