Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EntityProxy.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2008-2013 (http://safir.sourceforge.net)
4 *
5 * Created by: Anders Widén / stawi
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 _SAFIR_DOB_ENTITY_PROXY_H
26 #define _SAFIR_DOB_ENTITY_PROXY_H
27 
28 #include <Safir/Dob/Internal/ProxyImplPtr.h>
35 #include <Safir/Dob/Entity.h>
36 #include <Safir/Dob/Defs.h>
37 
38 #include <string>
39 
40 namespace Safir
41 {
42 namespace Dob
43 {
44  // Forward declaration
45  namespace Internal
46  {
47  class EntityProxyImpl;
48  }
49 
54  {
55  public:
56 
64  const Dob::Typesystem::TypeId GetTypeId() const;
65 
74 
83 
93  const Dob::EntityPtr GetEntity() const;
94 
103  const Dob::EntityPtr GetEntityWithChangeInfo() const;
104 
112  const Dob::Typesystem::HandlerId GetOwner() const;
113 
119  const Dob::ConnectionInfoPtr GetOwnerConnectionInfo() const;
120 
141  const char * GetBlob() const;
142 
153  const char * GetBlobWithChangeInfo() const;
154 
180  const Dob::PreviousEntityProxy GetPrevious() const;
181 
197  const Dob::Typesystem::HandlerId GetOwnerWithStringRepresentation() const;
198 
214  const Dob::Typesystem::Int64 GetTimestamp() const;
215 
224  const Dob::Typesystem::Int64 GetTimestamp(const Dob::Typesystem::MemberIndex member) const;
225 
229  // The constructor is for internal usage only!
230  explicit EntityProxy(Internal::EntityProxyImpl* pImpl);
231 
232  private:
233 
234 #ifdef _MSC_VER
235 #pragma warning (push)
236 #pragma warning (disable: 4251) // To get rid of warning that says that the template needs to have a DLL-interface
237 #endif
238 
239  Internal::ProxyImplPtr<Internal::EntityProxyImpl> m_pImpl;
240 
241 #ifdef _MSC_VER
242 #pragma warning (pop)
243 #endif
244 
245  };
246 
247 }
248 }
249 
250 #endif
Class containing the identity of an entity.
Definition: EntityId.h:41
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::TypeId GetTypeId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::MemberIndex member)
Get type id of object or enumeration member.
boost::shared_ptr< Entity > EntityPtr
Definition: Entity.h:32
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
boost::shared_ptr< ConnectionInfo > ConnectionInfoPtr
Definition: ConnectionInfo.h:34
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.
Proxy class for a "previous" entity.
Definition: PreviousEntityProxy.h:52
#define DOSE_CPP_API
Definition: DoseCppExportDefs.h:33
Proxy class for an entity.
Definition: EntityProxy.h:53
DotsC_MemberIndex MemberIndex
The index of a member in an object.
Definition: Defs.h:238