SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A Helper class for parsing XML Nodes that represent Item Definition Sections currently used for Attribute Definitions as well as Value, Group, and Reference Item Definitions. More...
#include <ItemDefinitionsHelper.h>
Public Member Functions | |
template<typename DefType > | |
void | processItemDefinitions (XmlDocV1Parser *parser, pugi::xml_node &itemsNode, const DefType &def, const std::string &defName, const std::string &attType) |
Method for parsing Item Definitions represented by the xml node itemsNode, for Definition-type class def. More... | |
A Helper class for parsing XML Nodes that represent Item Definition Sections currently used for Attribute Definitions as well as Value, Group, and Reference Item Definitions.
|
inline |
Method for parsing Item Definitions represented by the xml node itemsNode, for Definition-type class def.
When instantiating an XML node from Block or Template using the parser's createXmlFromTemplate method make sure you "release" it by calling the parser's releaseXmlTemplate. Though this does not release memory, it does tell the parser t is done with the node and removes it from its active list (which is used to detect infinite loops) defName is used for error reporting if a problem should be encountered and is the name of the def being processed and attType is its type