|
Schim
|
Base class for entities. More...
#include <entity.h>
Public Member Functions | |
| Entity (Entity *parent=nullptr) | |
| Construct an empty entity with an optional parent. | |
| virtual | ~Entity ()=default |
| Default destructor that makes this class virtual. | |
| VariableSet | getVariables () const |
| Return the variables defined for this entity. More... | |
Protected Attributes | |
| QString | name |
| The name of the entity. | |
| QString | fileName |
| The name of the source file where the entity is defined. | |
| VariableSet | variables |
| The variables associated with this entity. | |
| Entity * | parent {} |
| The parent of this entity. | |
Base class for entities.
An entity is any class that has some metadata associated with it. Metadata can be a name, annotative properties and variables. Currently, the only entities in Schim are Project, Sheet, CompositeObject and any of their subclasses.
The currently defined common metadata for all entities are:
name, a friendly name. Can be empty but this is not recommended.filename, the source file of the entity. This can be empty.variables, various variables including built-in and user-defined ones.parent, the parent entity.Variable | VariableSet Entity::getVariables | ( | ) | const |
Return the variables defined for this entity.
1.8.13