Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ServiceRequestProxy.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2006-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_SERVICE_REQUEST_PROXY_H
26 #define _SAFIR_DOB_SERVICE_REQUEST_PROXY_H
27 
28 #include <Safir/Dob/Internal/ProxyImplPtr.h>
33 #include <Safir/Dob/Service.h>
34 #include <Safir/Dob/Defs.h>
35 
36 #include <string>
37 
38 namespace Safir
39 {
40 namespace Dob
41 {
42 
43  // Forward declaration
44  namespace Internal
45  {
46  class ServiceRequestProxyImpl;
47  }
48 
53  {
54  public:
62  const Dob::Typesystem::TypeId GetTypeId() const;
63 
71  const Dob::ServicePtr GetRequest() const;
72 
80  const Dob::ConnectionInfoPtr GetSenderConnectionInfo() const;
81 
89  const Dob::Typesystem::HandlerId GetReceivingHandlerId() const;
90 
106  const char * GetBlob() const;
107 
121  const Dob::Typesystem::HandlerId GetReceiverWithStringRepresentation() const;
122 
125  // The constructor is for internal usage only!
126  explicit ServiceRequestProxy(Internal::ServiceRequestProxyImpl* pImpl);
127 
128  private:
129 
130 #ifdef _MSC_VER
131 #pragma warning (push)
132 #pragma warning (disable: 4251) // To get rid of warning that says that the template needs to have a DLL-interface
133 #endif
134 
135  Internal::ProxyImplPtr<Internal::ServiceRequestProxyImpl> m_pImpl;
136 
137 #ifdef _MSC_VER
138 #pragma warning (pop)
139 #endif
140 
141  };
142 }
143 }
144 
145 #endif
Class containing the identity of a handler.
Definition: HandlerId.h:44
Proxy class for a service request.
Definition: ServiceRequestProxy.h:52
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.
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
boost::shared_ptr< ConnectionInfo > ConnectionInfoPtr
Definition: ConnectionInfo.h:34
boost::shared_ptr< Service > ServicePtr
Definition: Service.h:32
#define DOSE_CPP_API
Definition: DoseCppExportDefs.h:33