Salome HOME
Create Presentation for rigid constraint
[modules/shaper.git] / src / Config / Config_FeatureReader.h
index c9535c34bf72e4ca9d25aaa9fdcdf9799af895e0..92a9d705fc630b2bc17ce1d5b387eb8a40e89c3f 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <string>
 #include <list>
+#include <map>
 
 class Config_FeatureMessage;
 
@@ -34,9 +35,16 @@ class Config_FeatureReader : public Config_XMLReader
     const boost::shared_ptr<Config_FeatureMessage>& outFeatureMessage);
   bool isInternalFeature(xmlNodePtr theRoot);
 
+  void storeAttribute(xmlNodePtr theNode, const char* theNodeAttribute);
+  std::string restoreAttribute(xmlNodePtr theNode, const char* theNodeAttribute);
+  std::string restoreAttribute(const char* theNodeName, const char* theNodeAttribute);
+
  private:
-  std::string myLastWorkbench;
-  std::string myLastGroup;
+  /// A map to store all parent's attributes.
+  /// The key has from "Node_Name:Node_Attribute"
+  std::map<std::string, std::string> myParentAttributes;
+  //std::string myLastWorkbench;
+  //std::string myLastGroup;
   std::string myLibraryName;
 
   std::list<std::string> myFeatures;