vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ConstraintHierarchy.h
Go to the documentation of this file.
1 #ifndef CONSTRAINT_HIERARCHY_H
2 #define CONSTRAINT_HIERARCHY_H
3 
5 #include <vector>
6 #include <string>
7 
8 using namespace std;
9 
10 
13  private:
14  string areaClassString; // Name of the constraint area class
15 
16  vector<ConstraintHierarchyMember*> hierarchyChildren; // Children of this hierarchy node
17  public:
19  virtual ~ConstraintHierarchyMember();
20 
21  inline string getAreaClassString() {return areaClassString;};
22  inline void setAreaClassString(string areaClassString) {this->areaClassString = areaClassString;};
23 
24  bool loadXMLFile(const char *xmlFile);
25  bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *pParametersNode);
26 
27  void write(int level = 0);
28 
29  ConstraintHierarchyMember* findHierarchyMember(string areaClassStringLookingFor);
30  bool isHierarchyAncestorOf(ConstraintHierarchyMember* hierarchyMember);
31  protected:
32  };
33 
34 
35 #endif