|
Safir SDK Core
|
Classes | |
| struct | GetParameterByFullName |
| Helper class to get ParameterDescription from a fully qualified name without having the ClassDescription. More... | |
Functions | |
| DotsC_TypeId | CalculateTypeId (const std::string &name) |
| Calculates a typeId from a string. | |
| const char * | GetTypeName (DotsC_MemberType memberType) |
| Finds corresponding type name to a memberType. | |
| template<class RepositoryT > | |
| const char * | GetTypeName (const RepositoryT *repository, DotsC_TypeId typeId) |
| Finds corresponding type name to a typeId. | |
| template<class RepositoryT , class DescriptionT > | |
| const char * | GetTypeName (const RepositoryT *repository, const DescriptionT *member) |
| Finds corresponding type name to a member or parameter description. | |
| template<class RepositoryT > | |
| bool | IsOfType (const RepositoryT *repository, DotsC_TypeId tid, DotsC_TypeId ofTid) |
| Check if a type is the same or a subtype of another type. | |
| template<class EnumDescriptionT > | |
| int | GetIndexOfEnumValue (const EnumDescriptionT *description, const std::string &valueName) |
| Get the index (ordinal) of an enumeration value. | |
| template<class PropertyDescriptionT , class MemberDescriptionT > | |
| DotsC_MemberIndex | GetPropertyMemberIndex (const PropertyDescriptionT *pd, const std::string &memberName) |
| Get index of a property member. | |
| template<class ClassDescriptionT , class ParameterDescriptionT > | |
| const ParameterDescriptionT * | GetParameterByName (const ClassDescriptionT *cd, const std::string ¶mName) |
| Get parameter by name when the classDescription is already retrieved. | |
| DotsC_Int64 | ToUnifiedDictionaryKey (DotsC_Int64 key) |
| ToUnifiedDictionaryKey - Convert all keys to an int64 that is the internal key format. | |
| DotsC_Int64 | ToUnifiedDictionaryKey (DotsC_Int32 key) |
| DotsC_Int64 | ToUnifiedDictionaryKey (const std::string &key) |
| DotsC_Int64 | ToUnifiedDictionaryKey (const DotsC_EntityId &key) |
| template<class ParameterDescriptionT , class KeyT > | |
| int | GetDictionaryIndexFromKey (const ParameterDescriptionT *pd, const KeyT &key) |
| DotsC_TypeId Safir::Dob::Typesystem::ToolSupport::TypeUtilities::CalculateTypeId | ( | const std::string & | name | ) |
Calculates a typeId from a string.
Does not check that the type exists.
| name | [in] - Name of the type |
Referenced by Safir::Dob::Typesystem::ToolSupport::TypeUtilities::GetParameterByFullName< RepT, Traits >::operator()().
| int Safir::Dob::Typesystem::ToolSupport::TypeUtilities::GetDictionaryIndexFromKey | ( | const ParameterDescriptionT * | pd, |
| const KeyT & | key ) |
| int Safir::Dob::Typesystem::ToolSupport::TypeUtilities::GetIndexOfEnumValue | ( | const EnumDescriptionT * | description, |
| const std::string & | valueName ) |
Get the index (ordinal) of an enumeration value.
| description | [in] - EnumerationDescription |
| valueName | [in] - Enumeration value name, can be short form or fully qualified. Ex: 'Monday' and 'MyNamespace.MyEnumType.Monday' |
| const ParameterDescriptionT * Safir::Dob::Typesystem::ToolSupport::TypeUtilities::GetParameterByName | ( | const ClassDescriptionT * | cd, |
| const std::string & | paramName ) |
Get parameter by name when the classDescription is already retrieved.
To get parameter from a fully qualified name, use GetParameterByFullName below.
| cd | [in] - The class description that contains the parameter. |
| paramName | [in] - Parameter name, can be short form or fully qualified name. |
| DotsC_MemberIndex Safir::Dob::Typesystem::ToolSupport::TypeUtilities::GetPropertyMemberIndex | ( | const PropertyDescriptionT * | pd, |
| const std::string & | memberName ) |
Get index of a property member.
| pd | [in] - Property description. |
| memberName | [in] - member name |
| const char * Safir::Dob::Typesystem::ToolSupport::TypeUtilities::GetTypeName | ( | const RepositoryT * | repository, |
| const DescriptionT * | member ) |
Finds corresponding type name to a member or parameter description.
| repository | [in] - Type repository containing all type information |
| member | [in] - Member description or Parameter description. |
References GetTypeName().
| const char * Safir::Dob::Typesystem::ToolSupport::TypeUtilities::GetTypeName | ( | const RepositoryT * | repository, |
| DotsC_TypeId | typeId ) |
Finds corresponding type name to a typeId.
If no type exists with given typeId NULL is returned.
| repository | [in] - Type repository containing all type information |
| typeId | [in] - TypeId to lookup and find name for. |
| const char * Safir::Dob::Typesystem::ToolSupport::TypeUtilities::GetTypeName | ( | DotsC_MemberType | memberType | ) |
Finds corresponding type name to a memberType.
| memberType | [in] - MemberType to convert to string |
Referenced by GetTypeName().
| bool Safir::Dob::Typesystem::ToolSupport::TypeUtilities::IsOfType | ( | const RepositoryT * | repository, |
| DotsC_TypeId | tid, | ||
| DotsC_TypeId | ofTid ) |
Check if a type is the same or a subtype of another type.
Only usable for Enumerations and ObjectTypes.
| repository | [in] - Type repository containing all type information |
| tid | [in] - TypeId to check if it is the same or a subtype of the ofTid |
| ofTid | [in] - The typeId to check tid against. |
| DotsC_Int64 Safir::Dob::Typesystem::ToolSupport::TypeUtilities::ToUnifiedDictionaryKey | ( | const DotsC_EntityId & | key | ) |
| DotsC_Int64 Safir::Dob::Typesystem::ToolSupport::TypeUtilities::ToUnifiedDictionaryKey | ( | const std::string & | key | ) |
| DotsC_Int64 Safir::Dob::Typesystem::ToolSupport::TypeUtilities::ToUnifiedDictionaryKey | ( | DotsC_Int32 | key | ) |
| DotsC_Int64 Safir::Dob::Typesystem::ToolSupport::TypeUtilities::ToUnifiedDictionaryKey | ( | DotsC_Int64 | key | ) |
ToUnifiedDictionaryKey - Convert all keys to an int64 that is the internal key format.
| key |
Referenced by GetDictionaryIndexFromKey().