Safir SDK Core
Loading...
Searching...
No Matches
ServiceRequestProxy.h
Go to the documentation of this file.
1/******************************************************************************
2*
3* Copyright Saab AB, 2006-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_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
38namespace Safir
39{
40namespace Dob
41{
42
43 // Forward declaration
44 namespace Internal
45 {
46 class ServiceRequestProxyImpl;
47 }
48
53 {
54 public:
63
72
81
90
106 const char * GetBlob() const;
107
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
#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< Service > ServicePtr
Definition Service.h:34
std::shared_ptr< ConnectionInfo > ConnectionInfoPtr
Definition ConnectionInfo.h:36
DotsC_TypeId TypeId
A unique type identifier.
Definition Defs.h:218
Proxy class for a service request.
Definition ServiceRequestProxy.h:53
const Dob::Typesystem::HandlerId GetReceiverWithStringRepresentation() const
Get receiver handler id that also contains the string representation.
const Dob::Typesystem::HandlerId GetReceivingHandlerId() const
Get id of receiving handler.
ServiceRequestProxy(Internal::ServiceRequestProxyImpl *pImpl)
const Dob::ConnectionInfoPtr GetSenderConnectionInfo() const
Get info about the sender.
Dob::Typesystem::TypeId GetTypeId() const
Get type id.
const char * GetBlob() const
Get binary blob of the received service request.
const Dob::ServicePtr GetRequest() const
Get service request.
Class containing the identity of a handler.
Definition HandlerId.h:46