Class CMetaEntity#

Inheritance Relationships#

Base Types#

Class Documentation#

class CMetaEntity : public CEntity, public sdv::idl::IMetaEntity#

The meta data inserted into the code.

Public Functions

CMetaEntity(const CContextPtr &rptrContext, CEntityPtr ptrParent, const CToken &rtokenMeta, const CTokenList lstComments)#

Constructor.

Parameters:
  • rptrContext[in] Reference to the smart pointer holding the parse context. Must not be NULL.

  • ptrParent[in] Pointer to the parent class holding this entity. This must not be NULL.

  • rtokenMeta[in] The meta data content

  • lstComments[in] Any preceding comments

virtual ~CMetaEntity() override = default#

Destructor.

inline virtual sdv::idl::EEntityType GetType() const override#

Get the type of the entity. Overload of CEntity::GetType.

Returns:

Returns the meta entity type.

inline virtual sdv::u8string GetName() const override#

Get the name of the entity. Overload of CEntity::GetName.

Returns:

The entity name.

virtual sdv::interface_t GetInterface(sdv::interface_id idInterface) override#

Get access to another interface. Overload of sdv::IInterfaceAccess::GetInterface.

Parameters:

idInterface[in] The interface id to get access to.

Returns:

Returns a pointer to the interface or NULL when the interface is not supported.

virtual sdv::idl::IMetaEntity::EType GetMetaType() const override#

Get the meta data type.

Returns:

Returns meta entity type.

virtual sdv::u8string GetContent() const override#

Get the meta data content.

Returns:

Returns a string object.

inline virtual void Process() override#

Process the code. Since there is none… nothing to do. Overload of CEntity::Process.