2 * Config_FeatureReader.h
4 * Created on: Mar 20, 2014
8 #ifndef CONFIG_FEATUREREADER_H_
9 #define CONFIG_FEATUREREADER_H_
11 #include <Config_def.h>
12 #include <Config_XMLReader.h>
17 class Config_FeatureMessage;
19 class Config_FeatureReader : public Config_XMLReader
22 Config_FeatureReader(const std::string& theXmlFile, const std::string& theLibraryName,
23 const char* theEventGenerated = 0);
24 virtual ~Config_FeatureReader();
26 std::list<std::string> features() const;
29 void processNode(xmlNodePtr aNode);
30 bool processChildren(xmlNodePtr aNode);
32 void fillFeature(xmlNodePtr theRoot, Config_FeatureMessage& outFeatureMessage);
33 bool isInternalFeature(xmlNodePtr theRoot);
36 std::string myLastWorkbench;
37 std::string myLastGroup;
38 std::string myLibraryName;
40 std::list<std::string> myFeatures;
41 /// event generated on feature data sending, by default it is EVENT_FEATURE_LOADED
42 const char* myEventGenerated;
45 #endif /* CONFIG_FEATUREREADER_H_ */