Made class name getter, can not be set outside of class
This commit is contained in:
@@ -8,5 +8,8 @@ public:
|
||||
virtual ~Instance(void);
|
||||
std::string name;
|
||||
Instance* parent; // Another pointer.
|
||||
std::vector<Instance*> children; // All children.
|
||||
std::string getClassName();
|
||||
protected:
|
||||
std::string className;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user