Class CEnumEntry#
Defined in File enum_entity.h
Inheritance Relationships#
Base Type#
public CDeclarationEntity
(Class CDeclarationEntity)
Class Documentation#
-
class CEnumEntry : public CDeclarationEntity#
The enum entry declaration.
Public Functions
-
CEnumEntry(const CContextPtr &rptrContext, CEntityPtr ptrParent)#
Default 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.
-
virtual ~CEnumEntry() override = default#
Destructor.
-
inline virtual sdv::idl::EEntityType GetType() const override#
Get the type of the entity. Overload of CEntity::GetType.
- Returns:
Returns enum entity type.
-
virtual std::string GetDeclTypeStr(bool bResolveTypedef) const override#
Get the declaration type of the entity as string. Overload of CEntity::GetDeclTypeStr.
- Parameters:
bResolveTypedef – [in] When set, resolve the typedef type into the base type.
- Returns:
Returns a string with enum type.
-
virtual void Process() override#
Process the code. Overload of CEntity::Process.
-
inline virtual bool SupportAssignments() const override#
Does the entity support assignments? Overload of CDeclarationEntity::SupportAssignments.
- Returns:
Returns ‘true’ when the entity supports assignments; ‘false’ otherwise.
-
inline virtual bool IsReadOnly() const override#
Is the entity readonly? Overload of IEntityInfo::IsReadOnly.
- Returns:
Returns ‘true’ when the entity defined as readonly; ‘false’ otherwise.
-
inline virtual bool SupportMultipleDeclarations() const override#
Does the entity support multiple declarations on one line of code? Overload of CDeclarationEntity::SupportMultipleDeclarations.
- Returns:
Returns ‘true’ when the entity supports multiple declarations; ‘false’ otherwise.
-
inline virtual bool DoNotEnfoceNextDeclarationAfterComma() const override#
Do not enforce next declaration after comma (enums do)? Overload of CDeclarationEntity::DoNotEnfoceNextDeclarationAfterComma.
- Returns:
Returns ‘true’ when not enforcing the next declaration; ‘false’ otherwise.
-
CEnumEntry(const CContextPtr &rptrContext, CEntityPtr ptrParent)#