Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / Config / Config_FeatureReader.h
index 117e8bd6ce18748c66e0e6bfedf2d05857cca997..12517a5df395849fdaeac3753325411305347047 100644 (file)
 #include <Config_XMLReader.h>
 
 #include <string>
-
+#include <list>
 
 class Config_FeatureMessage;
 
-class CONFIG_EXPORT Config_FeatureReader: public Config_XMLReader
+class Config_FeatureReader: public Config_XMLReader
 {
 public:
   Config_FeatureReader(const std::string& theXmlFile,
-                       const std::string& theLibraryName = "");
+                       const std::string& theLibraryName,
+                       const char* theEventGenerated = 0);
   virtual ~Config_FeatureReader();
 
+  std::list<std::string> features() const;
+
 protected:
   void processNode(xmlNodePtr aNode);
   bool processChildren(xmlNodePtr aNode);
@@ -33,6 +36,10 @@ private:
   std::string myLastWorkbench;
   std::string myLastGroup;
   std::string myLibraryName;
+
+  std::list<std::string> myFeatures;
+  /// event generated on feature data sending, by default it is "FeatureEvent"
+  const char* myEventGenerated;
 };
 
 #endif /* CONFIG_FEATUREREADER_H_ */