Contains all configuration associated with an NEM.
More...
#include <nemconfiguration.h>
Contains all configuration associated with an NEM.
- See also
- LayerConfiguration
Definition at line 56 of file nemconfiguration.h.
◆ NEMType
◆ NEMConfiguration()
EMANE::NEMConfiguration::NEMConfiguration |
( |
xmlNodePtr |
pNEMNode, |
|
|
const std::string |
sDefinitionURI |
|
) |
| |
Constructor
- Parameters
-
pNEMNode | Pointer to the Root node of this NEM |
sDefinitionURI | URI of the NEM definition file |
- Exceptions
-
Definition at line 42 of file nemconfiguration.cc.
◆ ~NEMConfiguration()
EMANE::NEMConfiguration::~NEMConfiguration |
( |
| ) |
|
◆ doProcessChildNode()
void EMANE::NEMConfiguration::doProcessChildNode |
( |
xmlNodePtr |
pNode | ) |
|
|
protectedvirtual |
◆ doProcessChildren()
void EMANE::LayerConfiguration::doProcessChildren |
( |
xmlNodePtr |
pParent, |
|
|
ParamMap & |
paramMap |
|
) |
| |
|
protectedvirtualinherited |
Process the children of the specifie node
- Parameters
-
pParent | Pointer to the parent |
paramMap | Parameter map |
- Exceptions
-
Definition at line 93 of file layerconfiguration.cc.
◆ doProcessParam()
void EMANE::LayerConfiguration::doProcessParam |
( |
ParamMap & |
paramMap, |
|
|
xmlNodePtr |
pParamNode |
|
) |
| |
|
protectedinherited |
Parse the param node
- Parameters
-
paramMap | to store parsed value |
pParamNode | Pointer to the param node |
Definition at line 132 of file layerconfiguration.cc.
◆ doProcessParamlist()
void EMANE::LayerConfiguration::doProcessParamlist |
( |
ParamMap & |
paramMap, |
|
|
xmlNodePtr |
pParamlistNode |
|
) |
| |
|
protectedinherited |
Parse the param node
- Parameters
-
paramMap | to store parsed values |
pParamlistNode | Pointer to the param list node |
Definition at line 153 of file layerconfiguration.cc.
◆ doProcessRootAttributes()
void EMANE::NEMConfiguration::doProcessRootAttributes |
( |
xmlNodePtr |
pRoot | ) |
|
|
protectedvirtual |
◆ getAttrVal()
std::string EMANE::LayerConfiguration::getAttrVal |
( |
xmlNodePtr |
pNode, |
|
|
const char * |
attributename |
|
) |
| |
|
protectedinherited |
Get the value of the attribute of the passed node
- Parameters
-
pNode | Pointer to the xml Node |
attributename | Name of the attribute to retrieve |
- Returns
- String value of named attribute
Definition at line 185 of file layerconfiguration.cc.
◆ getAttrValNumeric()
std::uint16_t EMANE::LayerConfiguration::getAttrValNumeric |
( |
xmlNodePtr |
pNode, |
|
|
const char * |
attributename |
|
) |
| |
|
protectedinherited |
Get the numeric value of the attribute of the passed node
- Parameters
-
pNode | Pointer to the xml Node |
attributename | Name of the attribute to retrieve |
- Returns
- Numeric value of the named attribute
Definition at line 205 of file layerconfiguration.cc.
◆ getConfigurationUpdateRequest()
Return A ConfigurationUpdateRequest built from the XML contents
- Returns
- A ConfigurationUpdateRequest built from the XML contents
Definition at line 233 of file layerconfiguration.cc.
◆ getDefinitionFile()
std::string EMANE::LayerConfiguration::getDefinitionFile |
( |
| ) |
const |
|
inherited |
Returns the name of the definition file
- Returns
- Path the name of the definition file
Definition at line 268 of file layerconfiguration.cc.
◆ getDefinitionPath()
std::string EMANE::LayerConfiguration::getDefinitionPath |
( |
| ) |
const |
|
inherited |
Returns the path to the definition file
- Returns
- Path to the definition file
Definition at line 261 of file layerconfiguration.cc.
◆ getLayers()
Returns the container with Layers
- Returns
- Container with Layer (phy/mac/shim/transport) config objects
Definition at line 75 of file nemconfiguration.cc.
◆ getLibrary()
std::string EMANE::LayerConfiguration::getLibrary |
( |
| ) |
const |
|
inherited |
◆ getNEMId()
◆ getType()
std::string EMANE::LayerConfiguration::getType |
( |
| ) |
const |
|
inherited |
◆ isExternalTransport()
bool EMANE::NEMConfiguration::isExternalTransport |
( |
| ) |
|
Returns whether-or-not this NEM transport is external
- Returns
- True if external, false otherwise
Definition at line 82 of file nemconfiguration.cc.
◆ isValid()
bool EMANE::NEMConfiguration::isValid |
( |
| ) |
|
Returns whether-or-not this NEM is 'valid'
- Returns
- True if this NEM is valid, false otherwise
Definition at line 89 of file nemconfiguration.cc.
◆ overlayParams()
void EMANE::LayerConfiguration::overlayParams |
( |
xmlNodePtr |
pNode | ) |
|
|
inherited |
Overlay parent parameter values atop child values already parsed
- Parameters
-
pNode | Pointer to parent node of params to overlay |
Definition at line 214 of file layerconfiguration.cc.
◆ processDefinition()
void EMANE::LayerConfiguration::processDefinition |
( |
const char * |
pxzName, |
|
|
const std::string & |
sURI |
|
) |
| |
|
protectedinherited |
Processes the definition of a given layer
- Parameters
-
pxzName | Name of the xml node to expect as root |
sURI | The URI to parse |
- Exceptions
-
Definition at line 51 of file layerconfiguration.cc.
◆ setPathAndFile()
void EMANE::LayerConfiguration::setPathAndFile |
( |
const std::string |
sURI | ) |
|
|
protectedinherited |
◆ params_
ParamMap EMANE::LayerConfiguration::params_ |
|
protectedinherited |
◆ sLibrary_
std::string EMANE::LayerConfiguration::sLibrary_ |
|
protectedinherited |
◆ sName_
std::string EMANE::LayerConfiguration::sName_ |
|
protectedinherited |
The documentation for this class was generated from the following files: