Finished new datamodel
Not very efficient, but its somewhere
This commit is contained in:
@@ -7,7 +7,7 @@ public:
|
||||
Instance(void);
|
||||
virtual ~Instance(void);
|
||||
std::string name;
|
||||
Instance* parent; // Another pointer.
|
||||
|
||||
std::vector<Instance*> children; // All children.
|
||||
std::string getClassName();
|
||||
Instance* findFirstChild(std::string);
|
||||
@@ -19,4 +19,5 @@ public:
|
||||
Instance* getParent();
|
||||
protected:
|
||||
std::string className;
|
||||
Instance* parent; // Another pointer.
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user