1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 * Config_ValidatorReader.h
6 * Created on: Mar 20, 2015
10 #ifndef CONFIG_VALIDATORREADER_H_
11 #define CONFIG_VALIDATORREADER_H_
13 #include <Config_def.h>
14 #include <Config_XMLReader.h>
20 * \class Config_ValidatorReader
22 * \brief Base class for all libxml readers. Provides high-level API
23 * for all xml operations.
25 class Config_ValidatorReader : public Config_XMLReader
30 * \param theXmlFile - full path to the xml file which will be processed by the reader
32 CONFIG_EXPORT Config_ValidatorReader(const std::string& theXmlFile);
33 CONFIG_EXPORT virtual ~Config_ValidatorReader();
37 * \brief Allows to customize reader's behavior for a node. Virtual.
38 * The default implementation process "source" and "validator" nodes.
40 virtual void processNode(xmlNodePtr aNode);
42 * \brief Defines which nodes should be processed recursively. Virtual.
43 * The default impl is to read all nodes.
45 virtual bool processChildren(xmlNodePtr aNode);
48 * Cleans the cached information about parent feature or attribute (widget)
50 virtual void cleanup(xmlNodePtr theNode);
53 * \brief Retrieves all the necessary info from the validator node.
54 * Sends ValidatorLoaded event
56 void processValidator(xmlNodePtr theNode);
59 std::string myCurrentWidget;
62 #endif /* CONFIG_VALIDATORREADER_H_ */