myHost(const char*procname, simgrid::s4u::Host *host,int argc, char **argv)
: simgrid::s4u::Actor(procname,host,argc,argv){}
- void show_info(boost::unordered_map <std::string, simgrid::s4u::Storage*> &mounts) {
+ void show_info(boost::unordered_map <std::string, simgrid::s4u::Storage*> const&mounts) {
XBT_INFO("Storage info on %s:",
simgrid::s4u::Host::current()->name().c_str());
}
int main(int argc, char **argv) {
- boost::unordered_map <std::string, simgrid::s4u::Storage *>& mounts =
- simgrid::s4u::Host::current()->mountedStorages();
+ boost::unordered_map <std::string, simgrid::s4u::Storage *> const& mounts =
+ simgrid::s4u::Host::current()->mounted_storages();
show_info(mounts);
simgrid::s4u::Engine *e = new simgrid::s4u::Engine(&argc,argv);
e->loadPlatform("../../platforms/storage/storage.xml");
- new myHost("host", simgrid::s4u::Host::byName("denise"), 0, NULL);
+ new myHost("host", simgrid::s4u::Host::by_name("denise"), 0, NULL);
e->run();
return 0;
}