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", "validator" and
39 * "selection_filter" nodes.
41 virtual void processNode(xmlNodePtr aNode);
43 * \brief Defines which nodes should be processed recursively. Virtual.
44 * The default impl is to read all nodes.
46 virtual bool processChildren(xmlNodePtr aNode);
49 * Cleans the cached information about parent feature or attribute (widget)
51 virtual void cleanup(xmlNodePtr theNode);
54 * \brief Retrieves all the necessary info from the validator node.
55 * Sends ValidatorLoaded event
57 void processValidator(xmlNodePtr theNode);
59 * \brief Retrieves all the necessary info from the SelectionFilter node.
60 * Sends SelectionFilterLoaded event
62 void processSelectionFilter(xmlNodePtr theNode);
65 std::string myCurrentWidget;
68 #endif /* CONFIG_VALIDATORREADER_H_ */