SimGrid
3.14.159
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 () | |
~PropertyHolder () | |
const char * | getProperty (const char *id) |
Return the property associated to the provided key (or nullptr if not existing) More... | |
void | setProperty (const char *id, const char *value) |
Change the value of a given key in the property set. More... | |
xbt_dict_t | getProperties () |
Return the whole set of properties. More... | |
|
explicitdefault |
simgrid::surf::PropertyHolder::~PropertyHolder | ( | ) |
const char * simgrid::surf::PropertyHolder::getProperty | ( | const char * | id | ) |
Return the property associated to the provided key (or nullptr if not existing)
void simgrid::surf::PropertyHolder::setProperty | ( | const char * | id, |
const char * | value | ||
) |
Change the value of a given key in the property set.
xbt_dict_t simgrid::surf::PropertyHolder::getProperties | ( | ) |
Return the whole set of properties.
Don't mess with it, dude!