Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Members.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_MEMBERS_H__
26 #define __DOTS_MEMBERS_H__
27 
28 
31 
32 namespace Safir
33 {
34 namespace Dob
35 {
36 namespace Typesystem
37 {
45 namespace Members
46 {
57 
68  const std::wstring & memberName);
69 
79  DOTS_CPP_API std::wstring GetName(const Dob::Typesystem::TypeId typeId,
80  const Dob::Typesystem::MemberIndex member);
81 
95  const Dob::Typesystem::MemberIndex member);
96 
112  DOTS_CPP_API void GetInfo(const Dob::Typesystem::TypeId typeId,
113  const Dob::Typesystem::MemberIndex member,
114  Dob::Typesystem::MemberType& memberType,
115  const char * & memberName,
116  Dob::Typesystem::TypeId & memberTypeId,
117  Dob::Typesystem::Int32 & stringLength,
118  bool & isArray,
119  Dob::Typesystem::Int32 & arrayLength);
120 
131  const Dob::Typesystem::MemberIndex member);
132 
143  const Dob::Typesystem::MemberIndex member);
144 
154  DOTS_CPP_API std::wstring GetTypeName(const Dob::Typesystem::TypeId typeId,
155  const Dob::Typesystem::MemberIndex member);
156 }
157 }
158 }
159 }
160 
161 #endif
162 
DOTS_CPP_API Dob::Typesystem::Int32 GetMaxStringLength(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::MemberIndex member)
Get the maximum string length of a member.
DOTS_CPP_API Dob::Typesystem::TypeId GetTypeId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::MemberIndex member)
Get type id of object or enumeration member.
DOTS_CPP_API void GetInfo(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::MemberIndex member, Dob::Typesystem::MemberType &memberType, const char *&memberName, Dob::Typesystem::TypeId &memberTypeId, Dob::Typesystem::Int32 &stringLength, bool &isArray, Dob::Typesystem::Int32 &arrayLength)
Get information about a specific class member.
DOTS_CPP_API Dob::Typesystem::Int32 GetNumberOfMembers(const Dob::Typesystem::TypeId typeId)
Get the number of members for a class or property.
DOTS_CPP_API Dob::Typesystem::MemberIndex GetIndex(const Dob::Typesystem::TypeId typeId, const std::wstring &memberName)
Get the member index of a named member.
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
DOTS_CPP_API std::wstring GetTypeName(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::MemberIndex member)
Get the name of the type as it was defined in the xml description.
DOTS_CPP_API Dob::Typesystem::Int32 GetArraySize(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::MemberIndex member)
Get the array size of a member.
DotsC_Int32 Int32
32 bit integer type.
Definition: Defs.h:67
#define DOTS_CPP_API
Definition: Defs.h:33
DOTS_CPP_API std::wstring GetName(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::MemberIndex member)
Get the name of the specified member as it was defined in the xml description.
DotsC_MemberIndex MemberIndex
The index of a member in an object.
Definition: Defs.h:238
DotsC_MemberType MemberType
An enumeration of all possible types of an object member.
Definition: Defs.h:279