Salome HOME
refs #80 - Sketch base GUI: create/draw point, circle and arc
[modules/shaper.git] / src / Config / Config_FeatureReader.h
index 7b5322bba036468272244794f370455f610c1fdb..468cb9911165f8c09faa902d6d0b55c23f317b53 100644 (file)
@@ -8,11 +8,11 @@
 #ifndef CONFIG_FEATUREREADER_H_
 #define CONFIG_FEATUREREADER_H_
 
-#include <Config.h>
+#include <Config_def.h>
 #include <Config_XMLReader.h>
 
 #include <string>
-
+#include <list>
 
 class Config_FeatureMessage;
 
@@ -20,21 +20,26 @@ 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);
 
   void fillFeature(xmlNodePtr theRoot, Config_FeatureMessage& outFeatureMessage);
+  bool isInternalFeature(xmlNodePtr theRoot);
 
 private:
   std::string myLastWorkbench;
   std::string myLastGroup;
   std::string myLibraryName;
-  /// event generated on feature data sending, by default it is "FeatureEvent"
+
+  std::list<std::string> myFeatures;
+  /// event generated on feature data sending, by default it is EVENT_FEATURE_LOADED
   const char* myEventGenerated;
 };