Safir SDK Core
Loading...
Searching...
No Matches
MessageProxy.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_MESSAGE_PROXY_H
26#define _SAFIR_DOB_MESSAGE_PROXY_H
27
28#include <Safir/Dob/Internal/ProxyImplPtr.h>
33#include <Safir/Dob/Message.h>
34#include <Safir/Dob/Defs.h>
35
36#include <string>
37
38//Undefine stupid macro that windows.h defines. Just in case someone has included it
39//before including us.
40#ifdef GetMessage
41#undef GetMessage
42#endif
43
44namespace Safir
45{
46namespace Dob
47{
48
49 // Forward declaration
50 namespace Internal
51 {
52 class MessageProxyImpl;
53 }
54
59 {
60 public:
69
78
87
96
112 const char * GetBlob() const;
113
128
131 // The constructor is for internal usage only!
132 explicit MessageProxy(Internal::MessageProxyImpl* pImpl);
133
134 private:
135
136#ifdef _MSC_VER
137#pragma warning (push)
138#pragma warning (disable: 4251) // To get rid of warning that says that the template needs to have a DLL-interface
139#endif
140
141 Internal::ProxyImplPtr<Internal::MessageProxyImpl> m_pImpl;
142
143#ifdef _MSC_VER
144#pragma warning (pop)
145#endif
146
147 };
148}
149}
150
151#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< Message > MessagePtr
Definition Message.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 message.
Definition MessageProxy.h:59
const char * GetBlob() const
Get binary blob of the received message.
MessageProxy(Internal::MessageProxyImpl *pImpl)
const Dob::MessagePtr GetMessage() const
Get message.
const Dob::ConnectionInfoPtr GetSenderConnectionInfo() const
Get info about the sender.
const Dob::Typesystem::ChannelId GetChannelId() const
Get channel id.
const Dob::Typesystem::ChannelId GetChannelIdWithStringRepresentation() const
Get channel id that also contains the string representation.
Dob::Typesystem::TypeId GetTypeId() const
Get type id.
Class containing the identity of a channel.
Definition ChannelId.h:46