Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PreviousEntityProxy.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_PREVIOUS_ENTITY_PROXY_H
26 #define _SAFIR_DOB_PREVIOUS_ENTITY_PROXY_H
27 
28 #include <Safir/Dob/Internal/ProxyImplPtr.h>
34 #include <Safir/Dob/Entity.h>
35 #include <Safir/Dob/Defs.h>
36 
37 #include <string>
38 
39 namespace Safir
40 {
41 namespace Dob
42 {
43  // Forward declaration
44  namespace Internal
45  {
46  class PreviousEntityProxyImpl;
47  }
48 
53  {
54  public:
55 
63  const Dob::Typesystem::TypeId GetTypeId() const;
64 
73 
82 
92  const Dob::EntityPtr GetEntity() const;
93 
102  const Dob::EntityPtr GetEntityWithChangeInfo() const;
103 
111  const Dob::Typesystem::HandlerId GetOwner() const;
112 
118  const Dob::ConnectionInfoPtr GetOwnerConnectionInfo() const;
119 
140  const char * GetBlob() const;
141 
152  const char * GetBlobWithChangeInfo() const;
153 
169  const Dob::Typesystem::HandlerId GetOwnerWithStringRepresentation() const;
170 
186  const Dob::Typesystem::Int64 GetTimestamp() const;
187 
196  const Dob::Typesystem::Int64 GetTimestamp(const Dob::Typesystem::MemberIndex member) const;
197 
201  // The constructor is for internal usage only!
202  explicit PreviousEntityProxy(Internal::PreviousEntityProxyImpl* pImpl);
203 
204  private:
205 
206 #ifdef _MSC_VER
207 #pragma warning (push)
208 #pragma warning (disable: 4251) // To get rid of warning that says that the template needs to have a DLL-interface
209 #endif
210 
211  Internal::ProxyImplPtr<Internal::PreviousEntityProxyImpl> m_pImpl;
212 
213 #ifdef _MSC_VER
214 #pragma warning (pop)
215 #endif
216 
217  };
218 
219 }
220 }
221 
222 #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
DotsC_MemberIndex MemberIndex
The index of a member in an object.
Definition: Defs.h:238