Safir SDK Core
Loading...
Searching...
No Matches
PreviousEntityProxy.h
Go to the documentation of this file.
1/******************************************************************************
2*
3* Copyright Saab AB, 2008-2013 (http://safirsdkcore.com)
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
39namespace Safir
40{
41namespace Dob
42{
43 // Forward declaration
44 namespace Internal
45 {
46 class PreviousEntityProxyImpl;
47 }
48
53 {
54 public:
55
64
73
82
93
103
112
119
140 const char * GetBlob() const;
141
152 const char * GetBlobWithChangeInfo() const;
153
170
187
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
#define DOSE_CPP_API
Definition DoseCppExportDefs.h:33
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
std::shared_ptr< ConnectionInfo > ConnectionInfoPtr
Definition ConnectionInfo.h:36
std::shared_ptr< Entity > EntityPtr
Definition Entity.h:34
DotsC_Int64 Int64
64 bit integer type.
Definition Defs.h:69
DotsC_TypeId TypeId
A unique type identifier.
Definition Defs.h:218
DotsC_MemberIndex MemberIndex
The index of a member in an object.
Definition Defs.h:237
Proxy class for a "previous" entity.
Definition PreviousEntityProxy.h:53
const char * GetBlobWithChangeInfo() const
Get binary blob with change information.
Dob::Typesystem::Int64 GetTimestamp(const Dob::Typesystem::MemberIndex member) const
Retrieves the timestamp for the given top member.
const Dob::ConnectionInfoPtr GetOwnerConnectionInfo() const
Get info about the connection to which the owner handler is related.
const Dob::Typesystem::HandlerId GetOwner() const
Get owner handler id.
const Dob::Typesystem::HandlerId GetOwnerWithStringRepresentation() const
Get owner handler id that also contains the string representation.
PreviousEntityProxy(Internal::PreviousEntityProxyImpl *pImpl)
const Dob::EntityPtr GetEntityWithChangeInfo() const
Get entity with change information.
const Dob::Typesystem::InstanceId GetInstanceId() const
Get instance id.
const Dob::EntityPtr GetEntity() const
Get entity.
Dob::Typesystem::Int64 GetTimestamp() const
Retrieves the timestamp for the latest create, update or delete.
const Dob::Typesystem::EntityId GetEntityId() const
Get entity id.
Dob::Typesystem::TypeId GetTypeId() const
Get type id.
const char * GetBlob() const
Get binary blob of the received entity without changeflags set.
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