Class CRootEntity#
Defined in File root_entity.h
Inheritance Relationships#
Base Type#
public CModuleEntity
(Class CModuleEntity)
Class Documentation#
-
class CRootEntity : public CModuleEntity#
The root definition of an IDL file.
The root section of the IDL file contains multiple definitions of modules, constants and types.
Public Functions
-
CRootEntity(CParser &rParser, const CContextPtr &rptrContext)#
Default constructor.
- Parameters:
rParser – [in] Reference to the parser used to parse the code.
rptrContext – [in] Reference to the smart pointer holding the parse context. Must not be NULL.
-
virtual void Process() override#
Process the code. Overload of CModuleEntity::Process.
-
inline virtual bool IsRootEntity() const override#
Is this definition a root entity? Overload of CDefinitionEntity::IsRootEntity.
The root entity is not expecting curly brackets ‘{…}’.
- Returns:
Returns whether this entity is the root entity.
-
virtual bool IsExtendable() const override#
Is the entity extendable? Overload of CEntity::IsExtendable.
Prevents extending the root entity.
- Returns:
Returns whether the entity is extendable.
-
void AddMeta(const CEntityPtr &ptrMeta)#
Add meta data entity.
- Parameters:
ptrMeta – [in] Shared pointer to the meta data entity.
-
const CEntityList &GetMeta() const#
Get the meta data entity list.
- Returns:
Reference to the meta data entity list.
-
CRootEntity(CParser &rParser, const CContextPtr &rptrContext)#