Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Parameters.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2006-2013 (http://safir.sourceforge.net)
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 
35 namespace Safir
36 {
37 namespace Dob
38 {
39 namespace Typesystem
40 {
48  namespace 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 
100  const Dob::Typesystem::ParameterIndex parameter);
101 
114  DOTS_CPP_API const std::wstring GetTypeName(const Dob::Typesystem::TypeId typeId,
115  const Dob::Typesystem::ParameterIndex parameter);
116 
128  const Dob::Typesystem::ParameterIndex parameter);
129 
147  const Dob::Typesystem::ParameterIndex parameter,
148  const Dob::Typesystem::ArrayIndex index);
149 
159  const Dob::Typesystem::ParameterIndex parameter,
160  const Dob::Typesystem::ArrayIndex index);
161 
171  const Dob::Typesystem::ParameterIndex parameter,
172  const Dob::Typesystem::ArrayIndex index);
173 
183  const Dob::Typesystem::ParameterIndex parameter,
184  const Dob::Typesystem::ArrayIndex index);
185 
195  const Dob::Typesystem::ParameterIndex parameter,
196  const Dob::Typesystem::ArrayIndex index);
197 
207  const Dob::Typesystem::ParameterIndex parameter,
208  const Dob::Typesystem::ArrayIndex index);
217  DOTS_CPP_API const std::wstring GetString(const Dob::Typesystem::TypeId typeId,
218  const Dob::Typesystem::ParameterIndex parameter,
219  const Dob::Typesystem::ArrayIndex index);
220 
230  const Dob::Typesystem::ParameterIndex parameter,
231  const Dob::Typesystem::ArrayIndex index);
232 
242  const Dob::Typesystem::ParameterIndex parameter,
243  const Dob::Typesystem::ArrayIndex index);
244 
254  const Dob::Typesystem::ParameterIndex parameter,
255  const Dob::Typesystem::ArrayIndex index);
256 
266  const Dob::Typesystem::ParameterIndex parameter,
267  const Dob::Typesystem::ArrayIndex index);
268 
278  const Dob::Typesystem::ParameterIndex parameter,
279  const Dob::Typesystem::ArrayIndex index);
280 
292  const Dob::Typesystem::ParameterIndex parameter,
293  const Dob::Typesystem::ArrayIndex index);
294 
306  const Dob::Typesystem::ParameterIndex parameter,
307  const Dob::Typesystem::ArrayIndex index);
308 
309 
311  }
312 }
313 }
314 }
315 
316 #endif
317 
Class containing the identity of a channel.
Definition: ChannelId.h:44
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::Int32 GetNumberOfParameters(const Dob::Typesystem::TypeId typeId)
Get the number of parameters defined in a class.
Class containing the identity of an entity.
Definition: EntityId.h:41
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::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 Dob::Typesystem::Int32 GetArraySize(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter)
Get the array size of a parameter.
Class containing the identity of a handler.
Definition: HandlerId.h:44
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 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::ParameterIndex GetIndex(const Dob::Typesystem::TypeId typeId, const std::wstring &parameterName)
Gets index of a named parameter.
DotsC_Float64 Float64
64 bit floating point type.
Definition: Defs.h:76
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 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 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::Float32 GetFloat32(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a Float32 parameter value.
Class containing the identity of an instance.
Definition: InstanceId.h:47
DotsC_Int64 Int64
64 bit integer type.
Definition: Defs.h:70
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
DotsC_Float32 Float32
32 bit floating point type.
Definition: Defs.h:73
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 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::HandlerId GetHandlerId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a HandlerId parameter value.
DotsC_ParameterIndex ParameterIndex
The index of a parameter in an object.
Definition: Defs.h:257
boost::shared_ptr< Object > ObjectPtr
A smart pointer to an Object.
Definition: Object.h:41
DotsC_ArrayIndex ArrayIndex
Index into an array.
Definition: Defs.h:247
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 std::wstring GetTypeName(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter)
Gets a string representation of the type of a parameter.
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 GetTypeId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::ParameterIndex parameter, const Dob::Typesystem::ArrayIndex index)
Get a TypeId parameter value.
DotsC_Int32 Int32
32 bit integer type.
Definition: Defs.h:67
#define DOTS_CPP_API
Definition: Defs.h:33
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.
DotsC_MemberType MemberType
An enumeration of all possible types of an object member.
Definition: Defs.h:279
std::vector< char > Binary
A type to contain binary data.
Definition: Defs.h:294