Class CAttributeEntity#
Defined in File attribute_entity.h
Inheritance Relationships#
Base Types#
public CDeclarationEntity
(Class CDeclarationEntity)public sdv::idl::IAttributeEntity
(Struct IAttributeEntity)
Class Documentation#
-
class CAttributeEntity : public CDeclarationEntity, public sdv::idl::IAttributeEntity#
The attribute definition of an IDL file.
The attribute section of the IDL file defines attribute values.
Public Functions
-
CAttributeEntity(const CContextPtr &rptrContext, CEntityPtr ptrParent, bool bReadOnly)#
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.
bReadOnly – [in] When set, the attribute is defined as readonly.
-
virtual ~CAttributeEntity() override = default#
Destructor.
-
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::IEntityIterator *GetReadExceptions() override#
Get the list of possible exceptions that might be fired during a read operation. Overload of sdv::idl::IAttributeEntity::GetReadExceptions.
- Returns:
Returns a pointer to the exceptions iterator or NULL when no exceptions were defined.
-
virtual sdv::idl::IEntityIterator *GetWriteExceptions() override#
Get the list of possible exceptions that might be fired during a write operation. Overload of sdv::idl::IAttributeEntity::GetWriteExceptions.
- Returns:
Returns a pointer to the exceptions iterator or NULL when no exceptions were defined.
-
inline virtual sdv::idl::EEntityType GetType() const override#
Get the type of the entity. Overload of CEntity::GetType.
- Returns:
Returns the attribute entity type.
-
virtual void Process() override#
Process the code. Overload of CEntity::Process.
Protected Functions
-
virtual bool SupportArrays() const override#
Does the entity support arrays? Overload of CDeclarationEntity::SupportArrays.
- Returns:
Returns ‘true’ when the entity supports assignments; ‘false’ otherwise.
-
virtual bool IsReadOnly() const override#
Is the entity readonly? Overload of IEntityInfo::IsReadOnly.
- Returns:
Returns ‘true’ when the entity defined as readonly; ‘false’ otherwise.
-
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.
-
virtual bool SupportRaiseExceptions() const override#
Does the entity support raising exceptions? Overload of CDeclarationEntity::SupportRaiseExceptions.
- Returns:
Returns ‘true’ when the entity supports exceptions; ‘false’ otherwise.
-
virtual bool SupportSeparateSetGetRaiseExceptions() const override#
Does the entity support separate set/get raising exceptions? Overload of CDeclarationEntity::SupportSeparateSetGetRaiseExceptions.
- Returns:
Returns ‘true’ when the entity supports separate set/get raise exceptions; ‘false’ otherwise.
-
CAttributeEntity(const CContextPtr &rptrContext, CEntityPtr ptrParent, bool bReadOnly)#