Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InjectedEntityProxy.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_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 
39 namespace Safir
40 {
41 namespace Dob
42 {
43  // Forward declaration
44  namespace Internal
45  {
46  class InjectedEntityProxyImpl;
47  }
48 
53  {
54  public:
55 
63  const Dob::Typesystem::TypeId GetTypeId() const;
64 
73 
82 
96  const Dob::EntityPtr GetInjection() const;
97 
116  const char * GetInjectionBlob() const;
117 
118 
132  const Dob::EntityPtr GetCurrent() const;
133 
134  //TODO: does anyone need a GetCurrentWithChangeInfo? Please tell your nearest
135  //Dob developer if so.
136 
137  // The constructor is for internal usage only!
138  explicit InjectedEntityProxy(Internal::InjectedEntityProxyImpl* pImpl);
139 
140  private:
141 
142 #ifdef _MSC_VER
143 #pragma warning (push)
144 #pragma warning (disable: 4251) // To get rid of warning that says that the template needs to have a DLL-interface
145 #endif
146 
147  Internal::ProxyImplPtr<Internal::InjectedEntityProxyImpl> m_pImpl;
148 
149 #ifdef _MSC_VER
150 #pragma warning (pop)
151 #endif
152 
153  };
154 
155 }
156 }
157 
158 #endif
Class containing the identity of an entity.
Definition: EntityId.h:41
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_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
Proxy class for entity injections.
Definition: InjectedEntityProxy.h:52
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.
#define DOSE_CPP_API
Definition: DoseCppExportDefs.h:33