A parameter resolver class for cXMLElement (more precisely, for cXMLElement::getElementByPath()) that, given a cModule pointer, resolves the following parameters: $MODULE_FULLPATH, $MODULE_FULLNAME, $MODULE_NAME, $MODULE_INDEX, $MODULE_ID; $PARENTMODULE_FULLPATH etc; $GRANDPARENTMODULE_FULLPATH etc. More...
#include <cxmlelement.h>
Public Member Functions | |
virtual bool | resolve (const char *paramname, std::string &value) |
A parameter resolver class for cXMLElement (more precisely, for cXMLElement::getElementByPath()) that, given a cModule pointer, resolves the following parameters: $MODULE_FULLPATH, $MODULE_FULLNAME, $MODULE_NAME, $MODULE_INDEX, $MODULE_ID; $PARENTMODULE_FULLPATH etc; $GRANDPARENTMODULE_FULLPATH etc.
virtual bool ModNameParamResolver::resolve | ( | const char * | paramname, | |
std::string & | value | |||
) | [virtual] |
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.