Safir SDK Core
Loading...
Searching...
No Matches
Parameters.h
Go to the documentation of this file.
1/******************************************************************************
2*
3* Copyright Saab AB, 2006-2013, 2024 (http://safirsdkcore.com)
4*
5* Created by: Lars Hagström / stlrha
6*
7*******************************************************************************
8*
9* This file is part of Safir SDK Core.
10*
11* Safir SDK Core is free software: you can redistribute it and/or modify
12* it under the terms of version 3 of the GNU General Public License as
13* published by the Free Software Foundation.
14*
15* Safir SDK Core is distributed in the hope that it will be useful,
16* but WITHOUT ANY WARRANTY; without even the implied warranty of
17* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18* GNU General Public License for more details.
19*
20* You should have received a copy of the GNU General Public License
21* along with Safir SDK Core. If not, see <http://www.gnu.org/licenses/>.
22*
23******************************************************************************/
24
25#ifndef __DOTS_PARAMETERS_H__
26#define __DOTS_PARAMETERS_H__
27
34
35namespace Safir
36{
37namespace Dob
38{
39namespace Typesystem
40{
48namespace Parameters
49{
64
74 const std::wstring& parameterName);
75
86 DOTS_CPP_API const std::wstring GetName(const Dob::Typesystem::TypeId typeId,
87 const Dob::Typesystem::ParameterIndex parameter);
88
97 const Dob::Typesystem::ParameterIndex parameter);
98
110 const Dob::Typesystem::ParameterIndex parameter);
111
125 const Dob::Typesystem::ParameterIndex parameter);
126
140 const Dob::Typesystem::ParameterIndex parameter);
141
162 const Dob::Typesystem::ParameterIndex parameter,
163 Dob::Typesystem::MemberType& parameterType,
165 std::wstring& parameterName,
166 Dob::Typesystem::TypeId& parameterTypeId,
167 Dob::Typesystem::TypeId& keyTypeId,
168 Dob::Typesystem::CollectionType & collectionType,
169 Dob::Typesystem::Int32& numberOfValues);
170
188 const Dob::Typesystem::ParameterIndex parameter,
189 const Dob::Typesystem::ArrayIndex index);
190
200 const Dob::Typesystem::ParameterIndex parameter,
201 const Dob::Typesystem::ArrayIndex index);
202
212 const Dob::Typesystem::ParameterIndex parameter,
213 const Dob::Typesystem::ArrayIndex index);
214
224 const Dob::Typesystem::ParameterIndex parameter,
225 const Dob::Typesystem::ArrayIndex index);
226
236 const Dob::Typesystem::ParameterIndex parameter,
237 const Dob::Typesystem::ArrayIndex index);
238
248 const Dob::Typesystem::ParameterIndex parameter,
249 const Dob::Typesystem::ArrayIndex index);
258 DOTS_CPP_API const std::wstring GetString(const Dob::Typesystem::TypeId typeId,
259 const Dob::Typesystem::ParameterIndex parameter,
260 const Dob::Typesystem::ArrayIndex index);
261
271 const Dob::Typesystem::ParameterIndex parameter,
272 const Dob::Typesystem::ArrayIndex index);
273
283 const Dob::Typesystem::ParameterIndex parameter,
284 const Dob::Typesystem::ArrayIndex index);
285
295 const Dob::Typesystem::ParameterIndex parameter,
296 const Dob::Typesystem::ArrayIndex index);
297
307 const Dob::Typesystem::ParameterIndex parameter,
308 const Dob::Typesystem::ArrayIndex index);
309
319 const Dob::Typesystem::ParameterIndex parameter,
320 const Dob::Typesystem::ArrayIndex index);
321
333 const Dob::Typesystem::ParameterIndex parameter,
334 const Dob::Typesystem::ArrayIndex index);
335
347 const Dob::Typesystem::ParameterIndex parameter,
348 const Dob::Typesystem::ArrayIndex index);
349
361 const Dob::Typesystem::ParameterIndex parameter,
362 const Dob::Typesystem::Int32 key);
363
375 const Dob::Typesystem::ParameterIndex parameter,
376 const Dob::Typesystem::Int64 key);
377
389 const Dob::Typesystem::ParameterIndex parameter,
390 const std::wstring& key);
391
403 const Dob::Typesystem::ParameterIndex parameter,
404 const Dob::Typesystem::EntityId& key);
405
417 const Dob::Typesystem::ParameterIndex parameter,
418 const Dob::Typesystem::InstanceId& key);
419
431 const Dob::Typesystem::ParameterIndex parameter,
432 const Dob::Typesystem::HandlerId& key);
433
445 const Dob::Typesystem::ParameterIndex parameter,
446 const Dob::Typesystem::ChannelId& key);
447
448
470 const Dob::Typesystem::ParameterIndex parameter,
471 const Dob::Typesystem::ArrayIndex index);
472
484 const Dob::Typesystem::ParameterIndex parameter,
485 const Dob::Typesystem::ArrayIndex index);
486
498 const Dob::Typesystem::ParameterIndex parameter,
499 const Dob::Typesystem::ArrayIndex index);
500
512 const Dob::Typesystem::ParameterIndex parameter,
513 const Dob::Typesystem::ArrayIndex index);
514
526 const Dob::Typesystem::ParameterIndex parameter,
527 const Dob::Typesystem::ArrayIndex index);
528
540 const Dob::Typesystem::ParameterIndex parameter,
541 const Dob::Typesystem::ArrayIndex index);
542
554 const Dob::Typesystem::ParameterIndex parameter,
555 const Dob::Typesystem::ArrayIndex index);
556
568 const Dob::Typesystem::ParameterIndex parameter,
569 const Dob::Typesystem::ArrayIndex index);
570
582 const Dob::Typesystem::ParameterIndex parameter,
583 const Dob::Typesystem::ArrayIndex index);
587}
588}
589}
590}
591
592#endif
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
DotsC_Float32 Float32
32 bit floating point type.
Definition Defs.h:72
std::vector< char > Binary
A type to contain binary data.
Definition Defs.h:306
DotsC_Int32 Int32
32 bit integer type.
Definition Defs.h:66
DotsC_Int64 Int64
64 bit integer type.
Definition Defs.h:69
DotsC_ParameterIndex ParameterIndex
The index of a parameter in an object.
Definition Defs.h:256
DotsC_Float64 Float64
64 bit floating point type.
Definition Defs.h:75
std::shared_ptr< Object > ObjectPtr
A smart pointer to an Object.
Definition Object.h:44
DotsC_CollectionType CollectionType
An enumeration of all possible collection types of an object member.
Definition Defs.h:293
DotsC_ArrayIndex ArrayIndex
Index into an array.
Definition Defs.h:246
DotsC_TypeId TypeId
A unique type identifier.
Definition Defs.h:218
DotsC_MemberType MemberType
An enumeration of all possible types of an object member.
Definition Defs.h:278
DOTS_CPP_API MemberType GetType(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter)
Get the type of a parameter.
DOTS_CPP_API Dob::Typesystem::Float32 GetFloat32(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a Float32 parameter value.
DOTS_CPP_API Dob::Typesystem::Int32 GetNumberOfParameters(const Dob::Typesystem::TypeId typeId)
Get the number of parameters defined in a class.
DOTS_CPP_API const Dob::Typesystem::ChannelId GetChannelIdDictionaryKey(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a ChannelId parameter dictionary key.
DOTS_CPP_API Dob::Typesystem::ParameterIndex GetIndex(const Dob::Typesystem::TypeId typeId, const std::wstring &parameterName)
Gets index of a named parameter.
DOTS_CPP_API const std::wstring GetString(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a string parameter value.
DOTS_CPP_API const Dob::Typesystem::InstanceId GetInstanceIdDictionaryKey(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a InstanceId parameter dictionary key.
DOTS_CPP_API Dob::Typesystem::TypeId GetTypeId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a TypeId parameter value.
DOTS_CPP_API const Dob::Typesystem::Binary GetBinary(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a Binary parameter value.
DOTS_CPP_API void GetInfo(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, Dob::Typesystem::MemberType &parameterType, Dob::Typesystem::MemberType &keyType, std::wstring &parameterName, Dob::Typesystem::TypeId &parameterTypeId, Dob::Typesystem::TypeId &keyTypeId, Dob::Typesystem::CollectionType &collectionType, Dob::Typesystem::Int32 &numberOfValues)
Get information about a specific parameter.
DOTS_CPP_API std::wstring GetTypeName(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter)
Get the type name of the specified member as it was defined in the xml description.
DOTS_CPP_API Dob::Typesystem::Int64 GetInt64(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get an Int64 parameter value.
DOTS_CPP_API Dob::Typesystem::Int32 GetInt32(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get an Int32 parameter value.
DOTS_CPP_API const Dob::Typesystem::EntityId GetEntityId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get an EntityId parameter value.
DOTS_CPP_API const Dob::Typesystem::ChannelId GetChannelId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a ChannelId parameter value.
DOTS_CPP_API const std::wstring GetStringDictionaryKey(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a string parameter dictionary key.
DOTS_CPP_API Dob::Typesystem::Int32 GetEnumeration(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get an enumeration parameter value.
DOTS_CPP_API const Dob::Typesystem::HandlerId GetHandlerId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a HandlerId parameter value.
DOTS_CPP_API Dob::Typesystem::Float64 GetFloat64(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a Float64 parameter value.
DOTS_CPP_API Dob::Typesystem::Int32 GetArraySize(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter)
Get the array size of a parameter.
DOTS_CPP_API bool GetBoolean(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a boolean parameter value.
DOTS_CPP_API const Dob::Typesystem::HandlerId GetHandlerIdDictionaryKey(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a HandlerId parameter dictionary key.
DOTS_CPP_API Dob::Typesystem::Int32 GetInt32DictionaryKey(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get an Int32 parameter dictionary key.
DOTS_CPP_API const std::wstring GetName(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter)
Get the name of the specified parameter as it was defined in the xml description.
DOTS_CPP_API const Dob::Typesystem::ObjectPtr GetObject(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get an Object parameter value.
DOTS_CPP_API Dob::Typesystem::TypeId GetTypeIdDictionaryKey(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a TypeId parameter dictionary key.
DOTS_CPP_API Dob::Typesystem::Int32 GetEnumerationDictionaryKey(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get an enumeration parameter dictionary key.
DOTS_CPP_API const Dob::Typesystem::EntityId GetEntityIdDictionaryKey(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get an EntityId parameter dictionary key.
DOTS_CPP_API Int32 DictionaryKeyToIndex(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::Int32 key)
Get the index of a Int32 dictionary key.
DOTS_CPP_API Dob::Typesystem::Int32 GetCollectionSize(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter)
Get the number of elements in a collection parameter.
DOTS_CPP_API const Dob::Typesystem::InstanceId GetInstanceId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a InstanceId parameter value.
DOTS_CPP_API Dob::Typesystem::Int64 GetInt64DictionaryKey(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get an Int64 parameter dictionary key.
Class containing the identity of a channel.
Definition ChannelId.h:46
Class containing the identity of an entity.
Definition EntityId.h:43
Class containing the identity of a handler.
Definition HandlerId.h:46
Class containing the identity of an instance.
Definition InstanceId.h:49
#define DOTS_CPP_API
Definition Defs.h:33