X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_XMLReader.h;h=7a42fcb09ed58821906493a58ace61396d4150fa;hb=4daaaede3d19f9cf948dc5b3252de941a7b3a4a7;hp=9761ada43e82222dcfb5a9e762c5ffd806e86810;hpb=733ef3a952e2cd2d5df92667569eb9096200da27;p=modules%2Fshaper.git diff --git a/src/Config/Config_XMLReader.h b/src/Config/Config_XMLReader.h index 9761ada43..7a42fcb09 100644 --- a/src/Config/Config_XMLReader.h +++ b/src/Config/Config_XMLReader.h @@ -12,12 +12,14 @@ #include "Config_Message.h" #include +#include //Forward declaration for xmlNodePtr. typedef struct _xmlNode xmlNode; typedef xmlNode *xmlNodePtr; struct _xmlNode; + class CONFIG_EXPORT Config_XMLReader { public: Config_XMLReader(const std::string& theXmlFile); @@ -34,7 +36,13 @@ protected: xmlNodePtr node(void* theNode); std::string getProperty(xmlNodePtr theNode, const char* property); - bool isNode(xmlNodePtr theNode, const char* name); + /* + * Please note that this function should be called with NULL last argument. + * In example: isNode(aNode, "type1", ["type2", ...], NULL); + * ", NULL" is required to use unlimited number of arguments. + * TODO(sbh): find a way to simplify calling this method. + */ + bool isNode(xmlNodePtr theNode, const char* name, ...); private: std::string m_DocumentPath;