GSDFPacketSplDcps.cpp
Go to the documentation of this file.
3 #include "dds_type_aliases.h"
4 
5 const char *
7 {
8  return (const char*)"opensplice_dds_broker::GSDFPacket";
9 }
10 
11 const char *
13 {
14  return (const char*)"";
15 }
16 
17 #include <v_kernel.h>
18 #include <v_topic.h>
19 #include <os_stdlib.h>
20 #include <string.h>
21 #include <os_report.h>
22 
23 c_bool
25  c_base base,
28 {
29  c_bool result = OS_C_TRUE;
30  (void) base;
31 
32 /* Code generated by /home/dds/OvernightTests/tmp.Zi75hUiMaK/build/src/tools/idlpp/code/idl_genCorbaCxxCopyin.c at line 2411 */
33 
34  static c_type type0 = NULL;
35  c_type subtype0 = NULL;
36  c_long length0;
37  c_char *dest0;
38 
39  if (type0 == NULL) {
40  subtype0 = c_type(c_metaResolve (c_metaObject(base), "c_char"));
41  type0 = c_metaSequenceTypeNew(c_metaObject(base),"C_SEQUENCE<c_char>",subtype0,0);
42  c_free(subtype0);
43  }
44  length0 = (c_long)(*from).length();
45 #ifdef OSPL_BOUNDS_CHECK
46  dest0 = (c_char *)c_newSequence(c_collectionType(type0), length0);
47  {
48  /* Code generated by /home/dds/OvernightTests/tmp.Zi75hUiMaK/build/src/tools/idlpp/code/idl_genCorbaCxxCopyin.c at line 1873 */
49  c_char *buf0;
50  buf0 = (c_char *)(*from).get_buffer();
51  memcpy (dest0,buf0,length0* sizeof(*dest0));
52  }
53  *to = (_opensplice_dds_broker_CharSeq)dest0;
54 #else
55  dest0 = (c_char *)c_newSequence(c_collectionType(type0), length0);
56  {
57  /* Code generated by /home/dds/OvernightTests/tmp.Zi75hUiMaK/build/src/tools/idlpp/code/idl_genCorbaCxxCopyin.c at line 1873 */
58  c_char *buf0;
59  buf0 = (c_char *)(*from).get_buffer();
60  memcpy (dest0,buf0,length0* sizeof(*dest0));
61  }
62  *to = (_opensplice_dds_broker_CharSeq)dest0;
63 #endif
64  return result;
65 }
66 
67 c_bool
69  c_base base,
70  struct ::opensplice_dds_broker::GSDFPacket *from,
72 {
73  c_bool result = OS_C_TRUE;
74  (void) base;
75 
76  if(result){
78  result = __opensplice_dds_broker_CharSeq__copyIn(base, &from->data, &to->data);
79  }
80  return result;
81 }
82 
83 void
85  void *_from,
86  void *_to)
87 {
90  long size0;
91  c_char *src0 = (c_char *)(*from);
92 
93  size0 = c_arraySize(c_sequence(src0));
94  (*to).length(size0);
95  {
96  c_char *buf0;
97  buf0 = (c_char *)(*to).get_buffer();
98  memcpy (buf0,src0,size0* sizeof(*buf0));
99  }
100 }
101 
102 void
104  void *_from,
105  void *_to)
106 {
108  struct ::opensplice_dds_broker::GSDFPacket *to = (struct ::opensplice_dds_broker::GSDFPacket *)_to;
109  {
110  extern void __opensplice_dds_broker_CharSeq__copyOut(void *, void *);
111  __opensplice_dds_broker_CharSeq__copyOut((void *)&from->data, (void *)&to->data);
112  }
113 }
114 
_opensplice_dds_broker_CharSeq data
const char * __opensplice_dds_broker_GSDFPacket__keys(void)
const char * __opensplice_dds_broker_GSDFPacket__name(void)
c_sequence _opensplice_dds_broker_CharSeq
void __opensplice_dds_broker_CharSeq__copyOut(void *_from, void *_to)
c_bool __opensplice_dds_broker_GSDFPacket__copyIn(c_base base, struct::opensplice_dds_broker::GSDFPacket *from, struct _opensplice_dds_broker_GSDFPacket *to)
void __opensplice_dds_broker_GSDFPacket__copyOut(void *_from, void *_to)
DDS_DCPSUFLSeq< DDS::Char, struct CharSeq_uniq_ > CharSeq
Definition: GSDFPacket.h:22
c_bool __opensplice_dds_broker_CharSeq__copyIn(c_base base,::opensplice_dds_broker::CharSeq *from, _opensplice_dds_broker_CharSeq *to)


opensplice_dds_broker
Author(s):
autogenerated on Mon Jun 10 2019 14:02:23