3#include "RobotRaconteurServiceIndex.h"
6namespace RobotRaconteurServiceIndex
9class ROBOTRACONTEUR_CORE_API RobotRaconteurServiceIndexFactory :
public virtual RobotRaconteur::ServiceFactory
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
49class NodeInfo_stub :
public virtual RobotRaconteur::StructureStub
52 NodeInfo_stub(
const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurNode>& node) : RobotRaconteur::StructureStub(node)
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;
60class ServiceInfo_stub :
public virtual RobotRaconteur::StructureStub
63 ServiceInfo_stub(
const RR_SHARED_PTR<RobotRaconteur::RobotRaconteurNode>& node)
64 : RobotRaconteur::StructureStub(node)
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;
72class async_ServiceIndex
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>&)>
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>&)>
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>&)>
94class ServiceIndex_stub :
public virtual ServiceIndex,
95 public virtual async_ServiceIndex,
96 public virtual RobotRaconteur::ServiceStub
99 ServiceIndex_stub(boost::string_ref path,
const RR_SHARED_PTR<RobotRaconteur::ClientContext>& c);
101 RR_OVIRTUAL
void RRInitStub() RR_OVERRIDE;
102 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, ServiceInfo> > GetLocalNodeServices() RR_OVERRIDE;
104 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, NodeInfo> > GetRoutedNodes() RR_OVERRIDE;
106 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::RRMap<int32_t, NodeInfo> > GetDetectedNodes() RR_OVERRIDE;
108 RR_OVIRTUAL boost::signals2::signal<
void()>& get_LocalNodeServicesChanged() RR_OVERRIDE;
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;
118 boost::signals2::signal<
void()> rrvar_LocalNodeServicesChanged;
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>&)>
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>&)>
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>&)>
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>&)>
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>&)>
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>&)>
165 RR_OVIRTUAL std::
string RRType() RR_OVERRIDE;
168class ServiceIndex_skel : public virtual RobotRaconteur::ServiceSkel
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;
177 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallSetProperty(
178 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m) RR_OVERRIDE;
180 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallFunction(
181 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m) RR_OVERRIDE;
183 RR_OVIRTUAL
void ReleaseCastObject() RR_OVERRIDE;
185 RR_OVIRTUAL
void RegisterEvents(const RR_SHARED_PTR<RobotRaconteur::RRObject>& rrobj1) RR_OVERRIDE;
187 RR_OVIRTUAL
void UnregisterEvents(const RR_SHARED_PTR<RobotRaconteur::RRObject>& rrobj1) RR_OVERRIDE;
189 RR_OVIRTUAL RR_SHARED_PTR<RobotRaconteur::RRObject> GetSubObj(boost::string_ref name,
190 boost::string_ref ind) RR_OVERRIDE;
192 RR_OVIRTUAL
void InitPipeServers(const RR_SHARED_PTR<RobotRaconteur::RRObject>& rrobj1) RR_OVERRIDE;
194 RR_OVIRTUAL
void InitWireServers(const RR_SHARED_PTR<RobotRaconteur::RRObject>& rrobj1) RR_OVERRIDE;
196 RR_OVIRTUAL
void DispatchPipeMessage(const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m,
197 uint32_t e) RR_OVERRIDE;
199 RR_OVIRTUAL
void DispatchWireMessage(const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m,
200 uint32_t e) RR_OVERRIDE;
202 RR_OVIRTUAL
void InitCallbackServers(const RR_SHARED_PTR<RobotRaconteur::RRObject>& o) RR_OVERRIDE;
204 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallPipeFunction(
205 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m, uint32_t e) RR_OVERRIDE;
207 RR_OVIRTUAL RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry> CallWireFunction(
208 const RR_INTRUSIVE_PTR<RobotRaconteur::MessageEntry>& m, uint32_t e) RR_OVERRIDE;
210 RR_OVIRTUAL RR_SHARED_PTR<
void> GetCallbackFunction(uint32_t endpoint, boost::string_ref membername) RR_OVERRIDE;
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;
216 RR_OVIRTUAL std::
string GetObjectType() RR_OVERRIDE;
217 virtual RR_SHARED_PTR<RobotRaconteurServiceIndex::ServiceIndex> get_obj();
219 void rr_LocalNodeServicesChanged_Handler();
222 boost::signals2::connection LocalNodeServicesChanged_rrconnection;
223 bool rr_InitPipeServersRun;
224 bool rr_InitWireServersRun;
#define RR_TIMEOUT_INFINITE
Disable timeout for asynchronous operations.
Definition RobotRaconteurConstants.h:566