SimGrid  3.16
Versatile Simulation of Distributed Systems
simgrid::surf::PropertyHolder Class Reference

Detailed Description

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>

Inheritance diagram for simgrid::surf::PropertyHolder:
simgrid::surf::HostImpl simgrid::surf::LinkImpl simgrid::surf::StorageImpl simgrid::surf::LinkL07 simgrid::surf::LinkNS3 simgrid::surf::NetworkCm02Link simgrid::surf::StorageN11

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...
 

Constructor & Destructor Documentation

◆ PropertyHolder()

simgrid::surf::PropertyHolder::PropertyHolder ( )
explicitdefault

◆ ~PropertyHolder()

simgrid::surf::PropertyHolder::~PropertyHolder ( )

Member Function Documentation

◆ getProperty()

const char * simgrid::surf::PropertyHolder::getProperty ( const char *  id)

Return the property associated to the provided key (or nullptr if not existing)

◆ setProperty()

void simgrid::surf::PropertyHolder::setProperty ( const char *  id,
const char *  value 
)

Change the value of a given key in the property set.

◆ getProperties()

xbt_dict_t simgrid::surf::PropertyHolder::getProperties ( )

Return the whole set of properties.

Don't mess with it, dude!


The documentation for this class was generated from the following files: