Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EntityRequestProxy.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2008-2013 (http://safir.sourceforge.net)
4 *
5 * Created by: Lars Hagström / stlrha
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_REQUEST_PROXY_H
26 #define _SAFIR_DOB_ENTITY_REQUEST_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 
44  // Forward declaration
45  namespace Internal
46  {
47  class EntityRequestProxyImpl;
48  }
49 
54  {
55  public:
63  const Dob::Typesystem::TypeId GetTypeId() const;
64 
77 
90 
100  const Dob::EntityPtr GetRequest() const;
101 
109  const Dob::ConnectionInfoPtr GetSenderConnectionInfo() const;
110 
118  const Dob::Typesystem::HandlerId GetReceivingHandlerId() const;
119 
135  const char * GetBlob() const;
136 
150  const Dob::Typesystem::HandlerId GetReceiverWithStringRepresentation() const;
151 
154  // The constructor is for internal usage only!
155  explicit EntityRequestProxy(Internal::EntityRequestProxyImpl* pImpl);
156 
157  private:
158 
159 #ifdef _MSC_VER
160 #pragma warning (push)
161 #pragma warning (disable: 4251) // To get rid of warning that says that the template needs to have a DLL-interface
162 #endif
163 
164  Internal::ProxyImplPtr<Internal::EntityRequestProxyImpl> m_pImpl;
165 
166 #ifdef _MSC_VER
167 #pragma warning (pop)
168 #endif
169 
170 
171  };
172 }
173 }
174 
175 #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_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
Proxy class for an entity request.
Definition: EntityRequestProxy.h:53
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.
#define DOSE_CPP_API
Definition: DoseCppExportDefs.h:33