SimGrid
3.18
Versatile Simulation of Distributed Systems
|
a PropertyHolder can be given a set of textual properties
Common PropertyHolders are elements of the platform file, such as Host, Link or Storage.
#include <PropertyHolder.hpp>
Public Member Functions | |
PropertyHolder ()=default | |
~PropertyHolder () | |
const char * | getProperty (std::string key) |
Return the property associated to the provided key (or nullptr if not existing) More... | |
void | setProperty (std::string id, std::string value) |
Change the value of a given key in the property set. More... | |
std::map< std::string, std::string > * | getProperties () |
Return the whole set of properties. More... | |
|
default |
simgrid::surf::PropertyHolder::~PropertyHolder | ( | ) |
const char * simgrid::surf::PropertyHolder::getProperty | ( | std::string | key | ) |
Return the property associated to the provided key (or nullptr if not existing)
void simgrid::surf::PropertyHolder::setProperty | ( | std::string | id, |
std::string | value | ||
) |
Change the value of a given key in the property set.
std::map< std::string, std::string > * simgrid::surf::PropertyHolder::getProperties | ( | ) |
Return the whole set of properties.
Don't mess with it, dude!