Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / Config / Config_FeatureReader.h
index bbc25ba274d94b3f9f3725df57ffcb799bf97090..12517a5df395849fdaeac3753325411305347047 100644 (file)
@@ -8,15 +8,23 @@
 #ifndef CONFIG_FEATUREREADER_H_
 #define CONFIG_FEATUREREADER_H_
 
+#include <Config.h>
 #include <Config_XMLReader.h>
 
-class CONFIG_EXPORT Config_FeatureReader: public Config_XMLReader
+#include <string>
+#include <list>
+
+class Config_FeatureMessage;
+
+class Config_FeatureReader: public Config_XMLReader
 {
 public:
-  Config_FeatureReader(const std::string& theXmlFile);
+  Config_FeatureReader(const std::string& theXmlFile,
+                       const std::string& theLibraryName,
+                       const char* theEventGenerated = 0);
   virtual ~Config_FeatureReader();
 
-  std::string featureWidgetCfg(std::string theFeatureName);
+  std::list<std::string> features() const;
 
 protected:
   void processNode(xmlNodePtr aNode);
@@ -24,11 +32,14 @@ protected:
 
   void fillFeature(xmlNodePtr theRoot, Config_FeatureMessage& outFeatureMessage);
 
-  std::string m_lastWorkbench;
-  std::string m_lastGroup;
+private:
+  std::string myLastWorkbench;
+  std::string myLastGroup;
+  std::string myLibraryName;
 
-  bool m_fetchWidgetCfg;
-  std::string m_widgetCfg;
+  std::list<std::string> myFeatures;
+  /// event generated on feature data sending, by default it is "FeatureEvent"
+  const char* myEventGenerated;
 };
 
 #endif /* CONFIG_FEATUREREADER_H_ */