Finished base for new datamodel
This commit is contained in:
@@ -10,6 +10,13 @@ public:
|
||||
Instance* parent; // Another pointer.
|
||||
std::vector<Instance*> children; // All children.
|
||||
std::string getClassName();
|
||||
Instance* findFirstChild(std::string);
|
||||
std::vector<Instance* > getChildren();
|
||||
std::vector<Instance* > getAllChildren();
|
||||
void setParent(Instance*);
|
||||
void addChild(Instance*);
|
||||
void removeChild(Instance*);
|
||||
Instance* getParent();
|
||||
protected:
|
||||
std::string className;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user