SimGrid
3.13
Versatile Simulation of Distributed Systems
|
a PropertyHolder can be given a set of textual properties More...
#include <PropertyHolder.hpp>
Public Member Functions | |
PropertyHolder (xbt_dict_t props) | |
~PropertyHolder () | |
const char * | getProperty (const char *id) |
Return the property associated to the provided key (or NULL 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... | |
a PropertyHolder can be given a set of textual properties
Common PropertyHolders are elements of the platform file, such as Host, Link or Storage.
simgrid::surf::PropertyHolder::PropertyHolder | ( | xbt_dict_t | props | ) |
simgrid::surf::PropertyHolder::~PropertyHolder | ( | ) |
const char * simgrid::surf::PropertyHolder::getProperty | ( | const char * | id | ) |
Return the property associated to the provided key (or NULL 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!