Robot Raconteur Core C++ Library
Loading...
Searching...
No Matches
RobotRaconteurServiceIndex_stubskel.h
1// This file is automatically generated. DO NOT EDIT!
2
3#include "RobotRaconteurServiceIndex.h"
4#pragma once
5
6namespace RobotRaconteurServiceIndex
7{
8
9class ROBOTRACONTEUR_CORE_API RobotRaconteurServiceIndexFactory : public virtual RobotRaconteur::ServiceFactory
10{
11 public:
12 RR_OVIRTUAL std::string GetServiceName() RR_OVERRIDE;
13 RR_OVIRTUAL std::string DefString() RR_OVERRIDE;
14 RR_OVIRTUAL RR_SHARED_PTR<RobotRaconteur::StructureStub> FindStructureStub(boost::string_ref s) RR_OVERRIDE;
15 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList> PackStructure(
16 const RR_INTRUSIVE_PTR<RobotRaconteur::RRStructure>& structin) RR_OVERRIDE;
17 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRValue> UnpackStructure(
18 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList>& mstructin) RR_OVERRIDE;
19 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList> PackPodArray(
20 const RR_INTRUSIVE_PTR<RobotRaconteur::RRPodBaseArray>& structure) RR_OVERRIDE;
21 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRPodBaseArray> UnpackPodArray(
22 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList>& structure) RR_OVERRIDE;
23 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList> PackPodMultiDimArray(
24 const RR_INTRUSIVE_PTR<RobotRaconteur::RRPodBaseMultiDimArray>& structure) RR_OVERRIDE;
25 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRPodBaseMultiDimArray> UnpackPodMultiDimArray(
26 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList>& structure) RR_OVERRIDE;
27 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList> PackNamedArray(
28 const RR_INTRUSIVE_PTR<RobotRaconteur::RRNamedBaseArray>& structure) RR_OVERRIDE;
29 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRNamedBaseArray> UnpackNamedArray(
30 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList>& structure) RR_OVERRIDE;
31 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList> PackNamedMultiDimArray(
32 const RR_INTRUSIVE_PTR<RobotRaconteur::RRNamedBaseMultiDimArray>& structure) RR_OVERRIDE;
33 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRNamedBaseMultiDimArray> UnpackNamedMultiDimArray(
34 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList>& structure) RR_OVERRIDE;
35 RR_OVIRTUAL RR_SHARED_PTR<RobotRaconteur::ServiceStub> CreateStub(
36 boost::string_ref objecttype, boost::string_ref path,
37 const RR_SHARED_PTR<RobotRaconteur::ClientContext>& context) RR_OVERRIDE;
38 RR_OVIRTUAL RR_SHARED_PTR<RobotRaconteur::ServiceSkel> CreateSkel(
39 boost::string_ref objecttype, boost::string_ref path, const RR_SHARED_PTR<RobotRaconteur::RRObject>& obj,
40 const RR_SHARED_PTR<RobotRaconteur::ServerContext>& context) RR_OVERRIDE;
41 RR_OVIRTUAL void DownCastAndThrowException(RobotRaconteur::RobotRaconteurException& exp) RR_OVERRIDE { throw exp; };
42 RR_OVIRTUAL RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException> DownCastException(
43 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>& exp) RR_OVERRIDE
44 {
45 return exp;
46 };
47};
48
49class NodeInfo_stub : public virtual RobotRaconteur::StructureStub
50{
51 public:
52 NodeInfo_stub(const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurNode>& node) : RobotRaconteur::StructureStub(node)
53 {}
54 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList> PackStructure(
55 const RR_INTRUSIVE_PTR<RobotRaconteur::RRValue>& s) RR_OVERRIDE;
56 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRStructure> UnpackStructure(
57 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList>& m) RR_OVERRIDE;
58};
59
60class ServiceInfo_stub : public virtual RobotRaconteur::StructureStub
61{
62 public:
63 ServiceInfo_stub(const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurNode>& node)
64 : RobotRaconteur::StructureStub(node)
65 {}
66 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList> PackStructure(
67 const RR_INTRUSIVE_PTR<RobotRaconteur::RRValue>& s) RR_OVERRIDE;
68 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRStructure> UnpackStructure(
69 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageElementNestedElementList>& m) RR_OVERRIDE;
70};
71
72class async_ServiceIndex
73{
74 public:
75 virtual ~async_ServiceIndex() {}
76 virtual void async_GetLocalNodeServices(
77 boost::function<void(const RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, ServiceInfo> >&,
78 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>&)>
79 rr_handler,
80 int32_t rr_timeout = RR_TIMEOUT_INFINITE) = 0;
81
82 virtual void async_GetRoutedNodes(
83 boost::function<void(const RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, NodeInfo> >&,
84 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>&)>
85 rr_handler,
86 int32_t rr_timeout = RR_TIMEOUT_INFINITE) = 0;
87
88 virtual void async_GetDetectedNodes(
89 boost::function<void(const RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, NodeInfo> >&,
90 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>&)>
91 rr_handler,
92 int32_t rr_timeout = RR_TIMEOUT_INFINITE) = 0;
93};
94class ServiceIndex_stub : public virtual ServiceIndex,
95 public virtual async_ServiceIndex,
96 public virtual RobotRaconteur::ServiceStub
97{
98 public:
99 ServiceIndex_stub(boost::string_ref path, const RR_SHARED_PTR<RobotRaconteur::ClientContext>& c);
100
101 RR_OVIRTUAL void RRInitStub() RR_OVERRIDE;
102 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, ServiceInfo> > GetLocalNodeServices() RR_OVERRIDE;
103
104 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, NodeInfo> > GetRoutedNodes() RR_OVERRIDE;
105
106 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, NodeInfo> > GetDetectedNodes() RR_OVERRIDE;
107
108 RR_OVIRTUAL boost::signals2::signal<void()>& get_LocalNodeServicesChanged() RR_OVERRIDE;
109
110 RR_OVIRTUAL void DispatchEvent(const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m) RR_OVERRIDE;
111 RR_OVIRTUAL void DispatchPipeMessage(const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m) RR_OVERRIDE;
112 RR_OVIRTUAL void DispatchWireMessage(const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m) RR_OVERRIDE;
113 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallbackCall(
114 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m) RR_OVERRIDE;
115 RR_OVIRTUAL void RRClose() RR_OVERRIDE;
116
117 private:
118 boost::signals2::signal<void()> rrvar_LocalNodeServicesChanged;
119
120 RR_OVIRTUAL void async_GetLocalNodeServices(
121 boost::function<void(const RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, ServiceInfo> >&,
122 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>&)>
123 rr_handler,
124 int32_t rr_timeout = RR_TIMEOUT_INFINITE) RR_OVERRIDE;
125
126 protected:
127 virtual void rrend_GetLocalNodeServices(
128 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m,
129 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>& err,
130 boost::function<void(const RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, ServiceInfo> >&,
131 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>&)>
132 handler);
133
134 public:
135 RR_OVIRTUAL void async_GetRoutedNodes(
136 boost::function<void(const RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, NodeInfo> >&,
137 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>&)>
138 rr_handler,
139 int32_t rr_timeout = RR_TIMEOUT_INFINITE) RR_OVERRIDE;
140
141 protected:
142 virtual void rrend_GetRoutedNodes(
143 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m,
144 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>& err,
145 boost::function<void(const RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, NodeInfo> >&,
146 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>&)>
147 handler);
148
149 public:
150 RR_OVIRTUAL void async_GetDetectedNodes(
151 boost::function<void(const RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, NodeInfo> >&,
152 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>&)>
153 rr_handler,
154 int32_t rr_timeout = RR_TIMEOUT_INFINITE) RR_OVERRIDE;
155
156 protected:
157 virtual void rrend_GetDetectedNodes(
158 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m,
159 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>& err,
160 boost::function<void(const RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, NodeInfo> >&,
161 const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurException>&)>
162 handler);
163
164 public:
165 RR_OVIRTUAL std::string RRType() RR_OVERRIDE;
166};
167
168class ServiceIndex_skel : public virtual RobotRaconteur::ServiceSkel
169{
170 public:
171 ServiceIndex_skel();
172 RR_OVIRTUAL void Init(boost::string_ref path, const RR_SHARED_PTR<RobotRaconteur::RRObject>& object,
173 const RR_SHARED_PTR<RobotRaconteur::ServerContext>& context) RR_OVERRIDE;
174 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallGetProperty(
175 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m) RR_OVERRIDE;
176
177 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallSetProperty(
178 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m) RR_OVERRIDE;
179
180 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallFunction(
181 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m) RR_OVERRIDE;
182
183 RR_OVIRTUAL void ReleaseCastObject() RR_OVERRIDE;
184
185 RR_OVIRTUAL void RegisterEvents(const RR_SHARED_PTR<RobotRaconteur::RRObject>& rrobj1) RR_OVERRIDE;
186
187 RR_OVIRTUAL void UnregisterEvents(const RR_SHARED_PTR<RobotRaconteur::RRObject>& rrobj1) RR_OVERRIDE;
188
189 RR_OVIRTUAL RR_SHARED_PTR<RobotRaconteur::RRObject> GetSubObj(boost::string_ref name,
190 boost::string_ref ind) RR_OVERRIDE;
191
192 RR_OVIRTUAL void InitPipeServers(const RR_SHARED_PTR<RobotRaconteur::RRObject>& rrobj1) RR_OVERRIDE;
193
194 RR_OVIRTUAL void InitWireServers(const RR_SHARED_PTR<RobotRaconteur::RRObject>& rrobj1) RR_OVERRIDE;
195
196 RR_OVIRTUAL void DispatchPipeMessage(const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m,
197 uint32_t e) RR_OVERRIDE;
198
199 RR_OVIRTUAL void DispatchWireMessage(const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m,
200 uint32_t e) RR_OVERRIDE;
201
202 RR_OVIRTUAL void InitCallbackServers(const RR_SHARED_PTR<RobotRaconteur::RRObject>& o) RR_OVERRIDE;
203
204 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallPipeFunction(
205 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m, uint32_t e) RR_OVERRIDE;
206
207 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallWireFunction(
208 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m, uint32_t e) RR_OVERRIDE;
209
210 RR_OVIRTUAL RR_SHARED_PTR<void> GetCallbackFunction(uint32_t endpoint, boost::string_ref membername) RR_OVERRIDE;
211
212 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallMemoryFunction(
213 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m,
214 const RR_SHARED_PTR<RobotRaconteur::Endpoint>& e) RR_OVERRIDE;
215
216 RR_OVIRTUAL std::string GetObjectType() RR_OVERRIDE;
217 virtual RR_SHARED_PTR<RobotRaconteurServiceIndex::ServiceIndex> get_obj();
218
219 void rr_LocalNodeServicesChanged_Handler();
220
221 protected:
222 boost::signals2::connection LocalNodeServicesChanged_rrconnection;
223 bool rr_InitPipeServersRun;
224 bool rr_InitWireServersRun;
225};
226
227} // namespace RobotRaconteurServiceIndex
#define RR_TIMEOUT_INFINITE
Disable timeout for asynchronous operations.
Definition RobotRaconteurConstants.h:566