![]() |
Safir SDK Core
|
Description of a parameter. More...
#include <Safir/Dob/Typesystem/ToolSupport/TypeRepository.h>
Public Member Functions | |
virtual | ~ParameterDescription ()=default |
Destructor. | |
virtual const char * | Summary () const =0 |
Get a summary about this parameter. | |
virtual const char * | GetName () const =0 |
Get the name of the parameter. | |
virtual DotsC_TypeId | GetClassTypeId () const =0 |
Get the TypeId of the class that the parameter belongs to. | |
virtual const char * | GetQualifiedName () const =0 |
Get fully qualified parameter name. | |
virtual DotsC_MemberType | GetMemberType () const =0 |
Get member type of this parameter value. | |
virtual DotsC_TypeId | GetTypeId () const =0 |
If this parameter has MemberType Enumeration or Object, the specific typeId of that type can be retrieved by this method. | |
virtual DotsC_CollectionType | GetCollectionType () const =0 |
Get the collection type of this parameter. | |
virtual DotsC_MemberType | GetKeyType () const =0 |
Get key type of this parameter. | |
virtual DotsC_TypeId | GetKeyTypeId () const =0 |
If this parameter has CollectionType Dictionary and KeyType Enumeration, the specific typeId of that enumeration can be retrieved by this method. | |
virtual int | GetNumberOfValues () const =0 |
Get the number of values this parameter holds. | |
virtual bool | IsHidden () const =0 |
Check if this is a normal parameter defined explicitly in a dou-file or if it is a special hidden parameter that has been automatically generated. | |
virtual DotsC_Int32 | GetInt32Value (int index) const =0 |
Get int32 parameter value. | |
virtual DotsC_Int64 | GetInt64Value (int index) const =0 |
Get int64 parameter value. | |
virtual DotsC_Float32 | GetFloat32Value (int index) const =0 |
Get float32 parameter value. | |
virtual DotsC_Float64 | GetFloat64Value (int index) const =0 |
Get float64 parameter value. | |
virtual bool | GetBoolValue (int index) const =0 |
Get bool parameter value. | |
virtual const char * | GetStringValue (int index) const =0 |
Get string parameter value. | |
virtual std::pair< const char *, DotsC_Int32 > | GetObjectValue (int index) const =0 |
Get object parameter value. | |
virtual std::pair< const char *, DotsC_Int32 > | GetBinaryValue (int index) const =0 |
Get binary parameter value. | |
virtual std::pair< DotsC_Int64, const char * > | GetHashedValue (int index) const =0 |
Get hashed parameter value. | |
virtual DotsC_Int32 | GetInt32Key (int index) const =0 |
Get int32 or enum key. | |
virtual DotsC_Int64 | GetInt64Key (int index) const =0 |
Get int64 or typeId key. | |
virtual const char * | GetStringKey (int index) const =0 |
Get string key. | |
virtual std::pair< DotsC_Int64, const char * > | GetHashedKey (int index) const =0 |
Get hashed key. | |
virtual int | GetIndexByUnifiedKey (DotsC_Int64 unifiedKey) const =0 |
GetIndexByUnifiedKey - Get corresponding index to a dictionary key. | |
virtual const std::map< DotsC_Int64, int > & | UnifiedKeyToIndexMap () const =0 |
UnifiedKeyToIndexMap - FOR INTERNAL USAGE ONLY. | |
Description of a parameter.
|
virtualdefault |
Destructor.
|
pure virtual |
Get binary parameter value.
Only valid if MemberType is Binary.
index | [in] - Parameter index. |
|
pure virtual |
Get bool parameter value.
Only valid if MemberType is Boolean.
index | [in] - Parameter index. |
|
pure virtual |
Get the TypeId of the class that the parameter belongs to.
|
pure virtual |
Get the collection type of this parameter.
|
pure virtual |
Get float32 parameter value.
Only valid if MemberType is Float32 or any Si32 type.
index | [in] - Parameter index. |
|
pure virtual |
Get float64 parameter value.
Only valid if MemberType is Float64 or any Si64 type.
index | [in] - Parameter index. |
|
pure virtual |
Get hashed key.
Only valid if memer is DictionaryCollectionType and has keyType InstanceId, ChannelId, HandlerId
index | [in] - Parameter index. |
|
pure virtual |
Get hashed parameter value.
Only valid if MemberType is InstanceId, ChannelId, HandlerId
index | [in] - Parameter index. |
|
pure virtual |
GetIndexByUnifiedKey - Get corresponding index to a dictionary key.
Only applicable when collectionType is Dictionary.
unifiedKey | [in] - Dictionary key on unified format. See TypeUtilities::ToUnifiedDictionaryKey for conversion. |
|
pure virtual |
Get int32 or enum key.
Only valid if memer is DictionaryCollectionType and has keyType Int32MemberType or EnumerationMemberType.
index | [in] - Parameter index. |
|
pure virtual |
Get int32 parameter value.
Only valid if MemberType is Int32.
index | [in] - Parameter index. |
|
pure virtual |
Get int64 or typeId key.
Only valid if memer is DictionaryCollectionType and has keyType Int64MemberType or TypeIdMemberType.
index | [in] - Parameter index. |
|
pure virtual |
Get int64 parameter value.
Only valid if MemberType is Int64 or TypeId
index | [in] - Parameter index. |
|
pure virtual |
Get key type of this parameter.
Only valid if CollectionType=DictionaryCollectionType, use GetCollectionType() method.
|
pure virtual |
If this parameter has CollectionType Dictionary and KeyType Enumeration, the specific typeId of that enumeration can be retrieved by this method.
If KeyType is not Enum the result of this method is undefined. Hence always use this in conjunction with GetKeyType().
|
pure virtual |
Get member type of this parameter value.
If member type is Enumeration or Object, use GetTypeId() to determine specific type.
|
pure virtual |
Get the name of the parameter.
Not including namespaces and class name.
|
pure virtual |
Get the number of values this parameter holds.
If collectionType is SingelValueCollectionType 1 is returned.
|
pure virtual |
Get object parameter value.
Only valid if MemberType is Object.
index | [in] - Parameter index. |
|
pure virtual |
Get fully qualified parameter name.
Example: MyNamespace.MyClass.MyParameter
|
pure virtual |
Get string key.
Only valid if memer is DictionaryCollectionType and has keyType StringMemberType.
index | [in] - Parameter index. |
|
pure virtual |
Get string parameter value.
Only valid if MemberType is String.
index | [in] - Parameter index. |
|
pure virtual |
If this parameter has MemberType Enumeration or Object, the specific typeId of that type can be retrieved by this method.
If MemberType is not Enum or Object the result of this method is undefined. Hence always use this in conjunction with GetMemberType().
|
pure virtual |
Check if this is a normal parameter defined explicitly in a dou-file or if it is a special hidden parameter that has been automatically generated.
|
pure virtual |
Get a summary about this parameter.
|
pure virtual |
UnifiedKeyToIndexMap - FOR INTERNAL USAGE ONLY.
Only needed by dots_kernel when copying localRepo to sharem memory. A dummy implementation should do if the repository is not going to be copied by dots_kernel. Normal usage should use GetIndexByUnifiedKey.