Safir SDK Core
Loading...
Searching...
No Matches
Safir::Dob::Typesystem::ToolSupport::TypeRepository Class Referenceabstract

The TypeRepository class is the baseclass of any TypeRepository implementation. More...

#include <Safir/Dob/Typesystem/ToolSupport/TypeRepository.h>

Public Member Functions

virtual ~TypeRepository ()=default
 Destructor.
 
virtual const EnumDescriptionGetEnum (DotsC_TypeId typeId) const =0
 Get enumeration description by typeId.
 
virtual int GetNumberOfEnums () const =0
 Get number of enumeration types.
 
virtual void GetAllEnumTypeIds (std::set< DotsC_TypeId > &typeIds) const =0
 Get a set of all typeIds that represent enumeration types.
 
virtual const PropertyDescriptionGetProperty (DotsC_TypeId typeId) const =0
 Get property description by typeId.
 
virtual int GetNumberOfProperties () const =0
 Get number of property types.
 
virtual void GetAllPropertyTypeIds (std::set< DotsC_TypeId > &typeIds) const =0
 Get a set of all typeIds that represent property types.
 
virtual const ClassDescriptionGetClass (DotsC_TypeId typeId) const =0
 Get class description by typeId.
 
virtual int GetNumberOfClasses () const =0
 Get number of class types.
 
virtual void GetAllClassTypeIds (std::set< DotsC_TypeId > &typeIds) const =0
 Get a set of all typeIds that represent class types.
 
virtual const ExceptionDescriptionGetException (DotsC_TypeId typeId) const =0
 Get exception description by typeId.
 
virtual int GetNumberOfExceptions () const =0
 Get number of exception types.
 
virtual void GetAllExceptionTypeIds (std::set< DotsC_TypeId > &typeIds) const =0
 Get a set of all typeIds that represent exception types.
 

Detailed Description

The TypeRepository class is the baseclass of any TypeRepository implementation.

Constructor & Destructor Documentation

◆ ~TypeRepository()

virtual Safir::Dob::Typesystem::ToolSupport::TypeRepository::~TypeRepository ( )
virtualdefault

Destructor.

Member Function Documentation

◆ GetAllClassTypeIds()

virtual void Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetAllClassTypeIds ( std::set< DotsC_TypeId > & typeIds) const
pure virtual

Get a set of all typeIds that represent class types.

Parameters
typeIds[out] - Set of typeIds.

◆ GetAllEnumTypeIds()

virtual void Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetAllEnumTypeIds ( std::set< DotsC_TypeId > & typeIds) const
pure virtual

Get a set of all typeIds that represent enumeration types.

Parameters
typeIds[out] - Set of typeIds.

◆ GetAllExceptionTypeIds()

virtual void Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetAllExceptionTypeIds ( std::set< DotsC_TypeId > & typeIds) const
pure virtual

Get a set of all typeIds that represent exception types.

Parameters
typeIds[out] - Set of typeIds.

◆ GetAllPropertyTypeIds()

virtual void Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetAllPropertyTypeIds ( std::set< DotsC_TypeId > & typeIds) const
pure virtual

Get a set of all typeIds that represent property types.

Parameters
typeIds[out] - Set of typeIds.

◆ GetClass()

virtual const ClassDescription * Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetClass ( DotsC_TypeId typeId) const
pure virtual

Get class description by typeId.

Parameters
typeId[in] - TypeId of the class.
Returns
ClassDescription or NULL if typeId does not exist or is a class type.

◆ GetEnum()

virtual const EnumDescription * Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetEnum ( DotsC_TypeId typeId) const
pure virtual

Get enumeration description by typeId.

Parameters
typeId[in] - TypeId of the enumeration
Returns
EnumDescription or NULL if typeId does not exist or is an enum type.

◆ GetException()

virtual const ExceptionDescription * Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetException ( DotsC_TypeId typeId) const
pure virtual

Get exception description by typeId.

Parameters
typeId[in] - TypeId of the class.
Returns
ExceptionDescription or NULL if typeId does not exist or is a class type.

◆ GetNumberOfClasses()

virtual int Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetNumberOfClasses ( ) const
pure virtual

Get number of class types.

Returns
Number of types.

◆ GetNumberOfEnums()

virtual int Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetNumberOfEnums ( ) const
pure virtual

Get number of enumeration types.

Returns
Number of types.

◆ GetNumberOfExceptions()

virtual int Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetNumberOfExceptions ( ) const
pure virtual

Get number of exception types.

Returns
Number of types.

◆ GetNumberOfProperties()

virtual int Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetNumberOfProperties ( ) const
pure virtual

Get number of property types.

Returns
Number of types.

◆ GetProperty()

virtual const PropertyDescription * Safir::Dob::Typesystem::ToolSupport::TypeRepository::GetProperty ( DotsC_TypeId typeId) const
pure virtual

Get property description by typeId.

Parameters
typeId[in] - TypeId of the property.
Returns
PropertyDescription or NULL if typeId does not exist or is a property type.