|
SHAPER
9.15.0
|
Base class for all libxml readers. Provides high-level API for all xml operations. More...

Public Member Functions | |
| CONFIG_EXPORT | Config_ValidatorReader (const std::string &theXmlFile, bool isXMLContent=false) |
| CONFIG_EXPORT void | setFeatureId (const std::string &theId) |
| Set feature ID for cases when XML for validators is parsed from memory. More... | |
| CONFIG_EXPORT void | readAll () |
| CONFIG_EXPORT xmlNodePtr | findRoot (const std::string theDocumentPath="") |
| CONFIG_EXPORT const char * | encoding () const |
Static Public Member Functions | |
| static CONFIG_EXPORT std::string | resourcesConfigFile () |
| static CONFIG_EXPORT std::string | pluginConfigFile () |
| static CONFIG_EXPORT std::string | findConfigFile (const std::string theFileName, const int theFindIndex=0) |
| Checks all possible paths to configuration file given Uses theFindIndex if several solutions can be found (this is the number of solution to find) More... | |
Protected Member Functions | |
| virtual void | processNode (xmlNodePtr aNode) |
| Allows to customize reader's behavior for a node. Virtual. The default implementation process "source" and "validator" nodes. More... | |
| virtual bool | processChildren (xmlNodePtr aNode) |
| Defines which nodes should be processed recursively. Virtual. The default impl is to read all nodes. More... | |
| virtual void | cleanup (xmlNodePtr theNode) |
| void | processValidator (xmlNodePtr theNode) |
| Retrieves all the necessary info from the validator node. Sends ValidatorLoaded event. More... | |
| void | readRecursively (xmlNodePtr theParent) |
| xmlNodePtr | node (void *theNode) |
| void* -> xmlNodePtr More... | |
| std::string | getNodeName (xmlNodePtr theNode) |
| Gets xml node name. More... | |
| void | storeAttribute (xmlNodePtr theNode, const char *theNodeAttribute, bool doClean=false) |
| Stores an attribute in internal map for later use. More... | |
| std::string | restoreAttribute (xmlNodePtr theNode, const char *theNodeAttribute) |
| Restores an attribute from internal map. More... | |
| std::string | restoreAttribute (const char *theNodeName, const char *theNodeAttribute) |
| Restores an attribute from internal map. More... | |
| bool | cleanupAttribute (xmlNodePtr theNode, const char *theNodeAttribute) |
| Cleanups attribute from cache. More... | |
| bool | cleanupAttribute (const char *theNodeName, const char *theNodeAttribute) |
| Cleanups attribute from cache. More... | |
Protected Attributes | |
| std::string | myDocumentPath |
| Path to the xml document. More... | |
| xmlDocPtr | myXmlDoc |
| Root of the xml document. More... | |
| std::string | myRootFileName |
| name of the root file More... | |
| std::map< std::string, std::string > | myCachedAttributes |
| A map to store all parent's attributes. More... | |
| bool | isFromMemory |
Base class for all libxml readers. Provides high-level API for all xml operations.
| Config_ValidatorReader::Config_ValidatorReader | ( | const std::string & | theXmlFile, |
| bool | isXMLContent = false |
||
| ) |
Constructor
| theXmlFile | - full path to the xml file which will be processed by the reader |
|
inline |
Set feature ID for cases when XML for validators is parsed from memory.
|
protectedvirtual |
Allows to customize reader's behavior for a node. Virtual. The default implementation process "source" and "validator" nodes.
Reimplemented from Config_XMLReader.
|
protectedvirtual |
Defines which nodes should be processed recursively. Virtual. The default impl is to read all nodes.
Reimplemented from Config_XMLReader.
|
protectedvirtual |
Cleans the cached information about parent feature or attribute (widget)
Reimplemented from Config_XMLReader.
|
protected |
Retrieves all the necessary info from the validator node. Sends ValidatorLoaded event.
| void Config_XMLReader::readAll |
Read all nodes in associated xml file, recursively if processChildren(xmlNode) is true for the xmlNode. For each read node the processNode will be called.
|
staticinherited |
Returns a path to resource files (created from ROOT_DIR environment variable)
|
staticinherited |
Returns a path to the plugins.xml file (created from ROOT_DIR environment variable)
|
inherited |
Returns xmlNodePtr to the root of reader's document or NULL if not found. If the path to the document to read is empty, uses myDocumentPath.
|
staticinherited |
Checks all possible paths to configuration file given Uses theFindIndex if several solutions can be found (this is the number of solution to find)
|
protectedinherited |
Calls processNode() for each child (for some - recursively) of the given node.
|
protectedinherited |
void* -> xmlNodePtr
|
protectedinherited |
Gets xml node name.
|
protectedinherited |
Stores an attribute in internal map for later use.
Key is "Node_Name:Node_Attribute" and value is getProperty(theNodeAttribute)
|
protectedinherited |
Restores an attribute from internal map.
|
protectedinherited |
Restores an attribute from internal map.
|
protectedinherited |
Cleanups attribute from cache.
|
protectedinherited |
Cleanups attribute from cache.
|
protectedinherited |
Path to the xml document.
|
protectedinherited |
Root of the xml document.
|
protectedinherited |
name of the root file
|
protectedinherited |
A map to store all parent's attributes.
The key has from "Node_Name:Node_Attribute"