|
FNSS ns-3 adapter
ns-3 adapter for the Fast Network Simulation Setup (FNSS) toolchain
|
#include <property-container.h>
Inheritance diagram for fnss::PropertyContainer:Classes | |
| class | PropertyNotFoundException |
Public Member Functions | |
| std::string | getProperty (const std::string &name) const |
| void | setProperty (const std::string &name, const std::string &value="") |
| bool | hasProperty (const std::string &name) const |
| void | addProperties (const PropertyContainer &other) |
| std::string | removeProperty (const std::string &name) |
| std::set< std::string > | getAllProperties () const |
Container class for <property_name, property_value> type data.
| void fnss::PropertyContainer::addProperties | ( | const PropertyContainer & | other | ) |
Add or overwrite all the properties from a different PropertyContainer.
| other | the object to copy the properties from. |
| std::set< std::string > fnss::PropertyContainer::getAllProperties | ( | ) | const |
Delete the specified property.
| name | name of the property. |
| found | set to true if the specified property was found, false otherwise. |
"" if not available). Get all the property names in a set.| std::string fnss::PropertyContainer::getProperty | ( | const std::string & | name | ) | const |
Get the value of the specified property.
Throws an exception if the specified property was not found.
| std::string | name of the property. |
| bool fnss::PropertyContainer::hasProperty | ( | const std::string & | name | ) | const |
Check whether the PropertyContainer has a specified property.
| name | the name of the property to check. |
| std::string fnss::PropertyContainer::removeProperty | ( | const std::string & | name | ) |
Delete the specified property.
Throws an exception if the specified property was not found.
| name | name of the property. |
| void fnss::PropertyContainer::setProperty | ( | const std::string & | name, |
| const std::string & | value = "" |
||
| ) |
Get the value of the specified property.
| std::string | name of the property. |
| found | set to true if the specified property was found, false otherwise |
"" if not available). Create or overwrite a property.| name | name of the property. |
| value | value of the property. |
1.8.6