Finished new datamodel

Not very efficient, but its somewhere
This commit is contained in:
andreja6
2018-05-01 15:02:04 -07:00
parent e6ca1cd502
commit 930aee06dc
5 changed files with 77 additions and 66 deletions

View File

@@ -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.
};