This repository has been archived by the owner on Jun 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
vendor_dependent.h
205 lines (157 loc) · 4.64 KB
/
vendor_dependent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
#ifndef VENDOR_DEPENDENT_H
#define VENDOR_DEPENDENT_H
struct DDS_Duration_t;
struct DDS_SampleInfo;
struct DDS_SampleInfoSeq;
struct DDS_DataReaderQos;
struct DDS_DataWriterQos;
struct DDS_SampleIdentity_t;
class DDSDomainParticipant;
class DDSPublisher;
class DDSSubscriber;
namespace boost {
template <class T>
class shared_ptr;
} // namespace boost
namespace connext {
template <class T>
class Sample;
template <class T>
class SampleRef;
template <class T>
class WriteSample;
template <class T>
class WriteSampleRef;
template <class T>
class LoanedSamples;
template <class T, bool>
class SampleIterator;
template <class T>
struct dds_type_traits;
} // namespace connext
namespace dds {
typedef ::DDS_Duration_t Duration;
typedef ::DDS_SampleInfo SampleInfo;
typedef ::DDS_SampleInfoSeq SampleInfoSeq;
using connext::Sample;
using connext::SampleRef;
using connext::WriteSample;
using connext::WriteSampleRef;
using connext::LoanedSamples;
using connext::SampleIterator;
template <typename T>
struct dds_type_traits
{
typedef typename T::DataReader* DataReader;
typedef typename T::DataWriter* DataWriter;
typedef SampleRef<T> SampleRefType;
typedef SampleRef<T> SampleIteratorValueType;
typedef SampleRef<const T> ConstSampleIteratorValueType;
typedef LoanedSamples<T> LoanedSamplesType;
typedef SampleIterator<T, false> iterator;
typedef SampleIterator<T, true> const_iterator;
};
struct dds_entity_traits
{
typedef ::DDSDomainParticipant* DomainParticipant;
typedef ::DDSPublisher* Publisher;
typedef ::DDSSubscriber* Subscriber;
typedef ::DDS_DataReaderQos const * DataReaderQos;
typedef ::DDS_DataWriterQos const * DataWriterQos;
};
template <class T>
class SharedSamples;
namespace rpc {
class RPCEntity;
class ServiceProxy;
class RequesterParams;
class ReplierParams;
class ServiceParams;
class ClientParams;
class ServerParams;
class ServiceEndpoint;
class Server;
template <class TReq, class TRep>
class Requester;
template <class TReq, class TRep>
class Replier;
template <class R>
class shared_future;
namespace details {
class ServerImpl;
class ServiceParamsImpl;
class ClientParamsImpl;
class ServerParamsImpl;
class ServiceEndpointImpl;
class RequesterParamsImpl;
class ReplierParamsImpl;
class ServiceProxyImpl;
class RPCEntityImpl;
template <class, class>
class RequesterImpl;
template <class Iface>
class ClientImpl;
template <class, class>
class ReplierImpl;
template <class T>
struct Unwrapper;
template <class T>
struct vendor_dependent;
template <>
struct vendor_dependent<dds::rpc::RPCEntity>
{
typedef boost::shared_ptr<details::RPCEntityImpl> type;
};
template <>
struct vendor_dependent<dds::rpc::RequesterParams>
{
typedef boost::shared_ptr<details::RequesterParamsImpl> type;
};
template <>
struct vendor_dependent<dds::rpc::ReplierParams>
{
typedef boost::shared_ptr<details::ReplierParamsImpl> type;
};
template <>
struct vendor_dependent<dds::rpc::ServiceParams>
{
typedef boost::shared_ptr<details::ServiceParamsImpl> type;
};
template <>
struct vendor_dependent<dds::rpc::ClientParams>
{
typedef boost::shared_ptr<details::ClientParamsImpl> type;
};
template <>
struct vendor_dependent<dds::rpc::ServerParams>
{
typedef boost::shared_ptr<details::ServerParamsImpl> type;
};
template <>
struct vendor_dependent<dds::rpc::ServiceEndpoint>
{
typedef boost::shared_ptr<details::ServiceEndpointImpl> type;
};
template <>
struct vendor_dependent<dds::rpc::Server>
{
typedef boost::shared_ptr<details::ServerImpl> type;
};
template <class TReq, class TRep>
struct vendor_dependent<dds::rpc::Requester<TReq, TRep>>
{
typedef boost::shared_ptr<details::RequesterImpl<TReq, TRep>> type;
};
template <class TReq, class TRep>
struct vendor_dependent<dds::rpc::Replier<TReq, TRep>>
{
typedef boost::shared_ptr<details::ReplierImpl<TReq, TRep>> type;
};
} // namespace details
} // namespace rpc
} // namespace dds
#include "rpc_types.h"
#include "boost/shared_ptr.hpp"
#include "ndds/ndds_requestreply_cpp.h"
#include "future_adapter.hpp"
#endif // VENDOR_DEPENDENT_H