Safir SDK Core
Loading...
Searching...
No Matches
InjectedEntityProxy.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_INJECTED_ENTITY_PROXY_H
26#define _SAFIR_DOB_INJECTED_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 InjectedEntityProxyImpl;
47 }
48
53 {
54 public:
55
64
73
82
97
116 const char * GetInjectionBlob() const;
117
118
133
134 // The constructor is for internal usage only!
135 explicit InjectedEntityProxy(Internal::InjectedEntityProxyImpl* pImpl);
136
137 private:
138
139#ifdef _MSC_VER
140#pragma warning (push)
141#pragma warning (disable: 4251) // To get rid of warning that says that the template needs to have a DLL-interface
142#endif
143
144 Internal::ProxyImplPtr<Internal::InjectedEntityProxyImpl> m_pImpl;
145
146#ifdef _MSC_VER
147#pragma warning (pop)
148#endif
149
150 };
151
152}
153}
154
155#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< Entity > EntityPtr
Definition Entity.h:34
DotsC_TypeId TypeId
A unique type identifier.
Definition Defs.h:218
Proxy class for entity injections.
Definition InjectedEntityProxy.h:53
const Dob::EntityPtr GetInjection() const
Get the entity state that is about to be injected.
const Dob::Typesystem::InstanceId GetInstanceId() const
Get instance id.
InjectedEntityProxy(Internal::InjectedEntityProxyImpl *pImpl)
const Dob::EntityPtr GetCurrent() const
Get the current entity state.
const Dob::Typesystem::EntityId GetEntityId() const
Get entity id.
const char * GetInjectionBlob() const
Get binary blob of the entity that is about to be injected.
Dob::Typesystem::TypeId GetTypeId() const
Get type id.
Class containing the identity of an entity.
Definition EntityId.h:43
Class containing the identity of an instance.
Definition InstanceId.h:49