7 #ifndef _FOO_SERVICE_HH 8 #define _FOO_SERVICE_HH 11 #include <dds/rpc_types.hh> 12 #include <dds/request_reply.hh> 13 #include <dds/function_call.hh> 15 # pragma warning(push) 16 # pragma warning(disable:4251) 17 # pragma warning(disable:4996) 49 # define FOO_SERVICE_DDL_VERSION_MAJOR 4 50 # define FOO_SERVICE_DDL_VERSION_MINOR 0 51 # define FOO_SERVICE_DDL_VERSION_PATCH alpha 52 # define FOO_SERVICE_DDL_VERSION_MAJOR_STR "4" 53 # define FOO_SERVICE_DDL_VERSION_MINOR_STR "0" 54 # define FOO_SERVICE_DDL_VERSION_PATCH_STR "alpha" 57 class Foo_op1_InTypeSupport;
58 class Foo_op1_InDataReader;
59 class Foo_op1_InDataWriter;
62 #ifndef _DDS_sequence_cpp_Foo_op1_InPtr_defined 63 #define _DDS_sequence_cpp_Foo_op1_InPtr_defined 64 DECLARE_CPP_UNBOUNDED_SEQ(
Foo_op1_In *, Foo_op1_InPtrSeq );
83 int get_marshal_size(
int offset,
int just_keys)
const ;
84 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
85 int marshal_key_hash(
unsigned char *buf,
int offset,
int stream_len)
const;
86 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
87 int unmarshal_key_hash(
unsigned char *buf,
int offset,
int stream_len);
93 typedef Foo_op1_InTypeSupport TypeSupport;
94 typedef Foo_op1_InDataReader DataReader;
95 typedef Foo_op1_InDataWriter DataWriter;
96 typedef Foo_op1_InPtrSeq Seq;
103 class Foo_op1_OutTypeSupport;
104 class Foo_op1_OutDataReader;
105 class Foo_op1_OutDataWriter;
108 #ifndef _DDS_sequence_cpp_Foo_op1_OutPtr_defined 109 #define _DDS_sequence_cpp_Foo_op1_OutPtr_defined 110 DECLARE_CPP_UNBOUNDED_SEQ(
Foo_op1_Out *, Foo_op1_OutPtrSeq );
131 int get_marshal_size(
int offset,
int just_keys)
const ;
132 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
133 int marshal_key_hash(
unsigned char *buf,
int offset,
int stream_len)
const;
134 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
135 int unmarshal_key_hash(
unsigned char *buf,
int offset,
int stream_len);
141 typedef Foo_op1_OutTypeSupport TypeSupport;
142 typedef Foo_op1_OutDataReader DataReader;
143 typedef Foo_op1_OutDataWriter DataWriter;
144 typedef Foo_op1_OutPtrSeq Seq;
159 unsigned char _initialized;
161 DDS::rpc::UnknownException _pd_unknownEx;
170 void discriminator(
int d) { _discriminator = d; _initialized = 1; }
171 int discriminator()
const {
return _discriminator; }
177 int get_marshal_size(
int offset,
int just_keys)
const ;
178 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
179 int marshal_key_hash(
unsigned char *buf,
int offset,
int stream_len)
const;
180 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
181 int unmarshal_key_hash(
unsigned char *buf,
int offset,
int stream_len);
186 DDS::rpc::UnknownException
unknownEx()
const {
return _u._pd_unknownEx; }
191 _u._pd_unknownEx = _v;
192 this->discriminator(1);
197 struct Foo_op1_Out &result() {
return _pd_result; }
203 this->discriminator(DDS::RETCODE_OK);
208 #ifndef _DDS_sequence_cpp_Foo_op1_ResultPtr_defined 209 #define _DDS_sequence_cpp_Foo_op1_ResultPtr_defined 210 DECLARE_CPP_UNBOUNDED_SEQ(
Foo_op1_Result *, Foo_op1_ResultPtrSeq );
214 class Foo_op2_InTypeSupport;
215 class Foo_op2_InDataReader;
216 class Foo_op2_InDataWriter;
219 #ifndef _DDS_sequence_cpp_Foo_op2_InPtr_defined 220 #define _DDS_sequence_cpp_Foo_op2_InPtr_defined 221 DECLARE_CPP_UNBOUNDED_SEQ(
Foo_op2_In *, Foo_op2_InPtrSeq );
240 int get_marshal_size(
int offset,
int just_keys)
const ;
241 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
242 int marshal_key_hash(
unsigned char *buf,
int offset,
int stream_len)
const;
243 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
244 int unmarshal_key_hash(
unsigned char *buf,
int offset,
int stream_len);
250 typedef Foo_op2_InTypeSupport TypeSupport;
251 typedef Foo_op2_InDataReader DataReader;
252 typedef Foo_op2_InDataWriter DataWriter;
253 typedef Foo_op2_InPtrSeq Seq;
260 class Foo_op2_OutTypeSupport;
261 class Foo_op2_OutDataReader;
262 class Foo_op2_OutDataWriter;
265 #ifndef _DDS_sequence_cpp_Foo_op2_OutPtr_defined 266 #define _DDS_sequence_cpp_Foo_op2_OutPtr_defined 267 DECLARE_CPP_UNBOUNDED_SEQ(
Foo_op2_Out *, Foo_op2_OutPtrSeq );
287 int get_marshal_size(
int offset,
int just_keys)
const ;
288 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
289 int marshal_key_hash(
unsigned char *buf,
int offset,
int stream_len)
const;
290 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
291 int unmarshal_key_hash(
unsigned char *buf,
int offset,
int stream_len);
297 typedef Foo_op2_OutTypeSupport TypeSupport;
298 typedef Foo_op2_OutDataReader DataReader;
299 typedef Foo_op2_OutDataWriter DataWriter;
300 typedef Foo_op2_OutPtrSeq Seq;
315 unsigned char _initialized;
317 DDS::rpc::UnknownException _pd_unknownEx;
326 void discriminator(
int d) { _discriminator = d; _initialized = 1; }
327 int discriminator()
const {
return _discriminator; }
333 int get_marshal_size(
int offset,
int just_keys)
const ;
334 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
335 int marshal_key_hash(
unsigned char *buf,
int offset,
int stream_len)
const;
336 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
337 int unmarshal_key_hash(
unsigned char *buf,
int offset,
int stream_len);
342 DDS::rpc::UnknownException
unknownEx()
const {
return _u._pd_unknownEx; }
347 _u._pd_unknownEx = _v;
348 this->discriminator(1);
353 struct Foo_op2_Out &result() {
return _pd_result; }
359 this->discriminator(DDS::RETCODE_OK);
364 #ifndef _DDS_sequence_cpp_Foo_op2_ResultPtr_defined 365 #define _DDS_sequence_cpp_Foo_op2_ResultPtr_defined 366 DECLARE_CPP_UNBOUNDED_SEQ(
Foo_op2_Result *, Foo_op2_ResultPtrSeq );
372 static const int Foo_op1_hash = -1263389113;
376 static const int Foo_op2_hash = -1610151175;
391 unsigned char _initialized;
400 void discriminator(
int d) { _discriminator = d; _initialized = 1; }
401 int discriminator()
const {
return _discriminator; }
405 void copy(
const Foo_Call * instance );
407 int get_marshal_size(
int offset,
int just_keys)
const ;
408 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
409 int marshal_key_hash(
unsigned char *buf,
int offset,
int stream_len)
const;
410 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
411 int unmarshal_key_hash(
unsigned char *buf,
int offset,
int stream_len);
421 this->discriminator(Foo_op1_hash);
430 this->discriminator(Foo_op2_hash);
435 #ifndef _DDS_sequence_cpp_Foo_CallPtr_defined 436 #define _DDS_sequence_cpp_Foo_CallPtr_defined 437 DECLARE_CPP_UNBOUNDED_SEQ(
Foo_Call *, Foo_CallPtrSeq );
441 class Foo_RequestTypeSupport;
442 class Foo_RequestDataReader;
443 class Foo_RequestDataWriter;
446 #ifndef _DDS_sequence_cpp_Foo_RequestPtr_defined 447 #define _DDS_sequence_cpp_Foo_RequestPtr_defined 448 DECLARE_CPP_UNBOUNDED_SEQ(
Foo_Request *, Foo_RequestPtrSeq );
466 int get_marshal_size(
int offset,
int just_keys)
const ;
467 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
468 int marshal_key_hash(
unsigned char *buf,
int offset,
int stream_len)
const;
469 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
470 int unmarshal_key_hash(
unsigned char *buf,
int offset,
int stream_len);
481 struct DDS::rpc::RequestHeader header;
487 typedef Foo_RequestTypeSupport TypeSupport;
488 typedef Foo_RequestDataReader DataReader;
489 typedef Foo_RequestDataWriter DataWriter;
490 typedef Foo_RequestPtrSeq Seq;
506 unsigned char _initialized;
508 DDS::rpc::UnknownOperation _pd_unknownOp;
518 void discriminator(
int d) { _discriminator = d; _initialized = 1; }
519 int discriminator()
const {
return _discriminator; }
525 int get_marshal_size(
int offset,
int just_keys)
const ;
526 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
527 int marshal_key_hash(
unsigned char *buf,
int offset,
int stream_len)
const;
528 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
529 int unmarshal_key_hash(
unsigned char *buf,
int offset,
int stream_len);
539 this->discriminator(Foo_op1_hash);
548 this->discriminator(Foo_op2_hash);
551 DDS::rpc::UnknownOperation
unknownOp()
const {
return _u._pd_unknownOp; }
555 _u._pd_unknownOp = _v;
556 this->discriminator(0);
561 #ifndef _DDS_sequence_cpp_Foo_ReturnPtr_defined 562 #define _DDS_sequence_cpp_Foo_ReturnPtr_defined 563 DECLARE_CPP_UNBOUNDED_SEQ(
Foo_Return *, Foo_ReturnPtrSeq );
567 class Foo_ReplyTypeSupport;
568 class Foo_ReplyDataReader;
569 class Foo_ReplyDataWriter;
572 #ifndef _DDS_sequence_cpp_Foo_ReplyPtr_defined 573 #define _DDS_sequence_cpp_Foo_ReplyPtr_defined 574 DECLARE_CPP_UNBOUNDED_SEQ(
Foo_Reply *, Foo_ReplyPtrSeq );
595 int get_marshal_size(
int offset,
int just_keys)
const ;
596 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
597 int marshal_key_hash(
unsigned char *buf,
int offset,
int stream_len)
const;
598 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
599 int unmarshal_key_hash(
unsigned char *buf,
int offset,
int stream_len);
605 struct DDS::rpc::ReplyHeader header;
609 typedef Foo_ReplyTypeSupport TypeSupport;
610 typedef Foo_ReplyDataReader DataReader;
611 typedef Foo_ReplyDataWriter DataWriter;
612 typedef Foo_ReplyPtrSeq Seq;
631 struct COREDX_TS_STRUCT_EXPORT
Foo {
638 Foo& operator=(
const Foo & other);
644 virtual unsigned char op1 (
const int param ) = 0;
646 virtual int op2 ( ) = 0;
678 unsigned char op1 (
const int param );
722 FooServiceListener * listener;
726 virtual unsigned char op1 (
const int param ) = 0;
728 virtual int op2 ( ) = 0;
737 # pragma warning(pop) void unknownOp(DDS::rpc::UnknownOperation _v)
Definition: example_foo_service.hh:553
DDS::rpc::UnknownOperation unknownOp() const
Definition: example_foo_service.hh:551
DDS::rpc::UnusedMember dummy
Definition: example_foo_service.hh:248
Definition: example_foo_service.hh:631
DDS::SampleIdentity_t * request_id()
Definition: example_foo_service.hh:476
const struct Foo_op2_Out & result() const
Definition: example_foo_service.hh:352
Definition: example_foo_service.hh:228
Definition: example_foo_service.hh:583
void result(const struct Foo_op1_Out &_v)
Definition: example_foo_service.hh:200
A replier receives requests and send replies.
Definition: request_reply.hh:57
Definition: example_foo_service.hh:665
const struct Foo_op1_Out & result() const
Definition: example_foo_service.hh:196
Used to pass configuration parameters when constructing a Service.
Definition: function_call.hh:87
void unknownEx(DDS::rpc::UnknownException _v)
Definition: example_foo_service.hh:345
unsigned char return_
Definition: example_foo_service.hh:139
Used to pass configuration parameters when constructing a Client.
Definition: function_call.hh:195
Definition: example_foo_service.hh:387
Definition: function_call.hh:306
void unknownEx(DDS::rpc::UnknownException _v)
Definition: example_foo_service.hh:189
void result(const struct Foo_op2_Out &_v)
Definition: example_foo_service.hh:356
Definition: example_foo_service.hh:454
Definition: example_foo_service.hh:119
DDS::rpc::UnknownException unknownEx() const
Definition: example_foo_service.hh:342
Definition: example_foo_service.hh:502
DDS::rpc::UnknownException unknownEx() const
Definition: example_foo_service.hh:186
Provides the DDS infrastructure.
Definition: dds_builtin_basic.hh:28
DDS::SampleIdentity_t * related_id()
Definition: example_foo_service.hh:603
class Foo_op1_Result & op1()
Definition: example_foo_service.hh:535
int param
Definition: example_foo_service.hh:91
Definition: function_call.hh:369
Definition: dds_builtin_basic.hh:239
void op1(const struct Foo_op1_In &_v)
Definition: example_foo_service.hh:418
const class Foo_op1_Result & op1() const
Definition: example_foo_service.hh:533
int return_
Definition: example_foo_service.hh:295
const struct Foo_op2_In & op2() const
Definition: example_foo_service.hh:424
const struct Foo_op1_In & op1() const
Definition: example_foo_service.hh:415
Definition: example_foo_service.hh:71
void op2(const struct Foo_op2_In &_v)
Definition: example_foo_service.hh:427
Definition: example_foo_service.hh:311
void op2(const class Foo_op2_Result &_v)
Definition: example_foo_service.hh:545
Definition: example_foo_service.hh:155
Definition: example_foo_service.hh:275
const class Foo_op2_Result & op2() const
Definition: example_foo_service.hh:542
ReplierLister can be installed on a Replier.
Definition: request_reply.hh:109
Definition: example_foo_service.hh:702