OMNeT++ Simulation Library  6.0.3
ModNameParamResolver Class Reference

#include <cxmlelement.h>

Description

A parameter resolver class for cXMLElement cXMLElement::getElementByPath().

Given a cModule pointer, this class resolves the following parameters: $MODULE_FULLPATH, $MODULE_FULLNAME, $MODULE_NAME, $MODULE_INDEX, $MODULE_ID; $PARENTMODULE_FULLPATH etc; $GRANDPARENTMODULE_FULLPATH etc.

Inheritance diagram for ModNameParamResolver:
cXMLElement::ParamResolver

Public Member Functions

virtual bool resolve (const char *paramname, std::string &value) override
 

Member Function Documentation

◆ resolve()

virtual bool resolve ( const char *  paramname,
std::string &  value 
)
overridevirtual

To be redefined in subclasses. If paramname is recognized, the method should store the value in the 'value' argument and return true; otherwise it should return false.

Implements cXMLElement::ParamResolver.


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