GSDFPacketSplDcps.cpp
Go to the documentation of this file.
00001 #include "opensplice_dds_broker/GSDFPacketSplDcps.h"
00002 #include "opensplice_dds_broker/ccpp_GSDFPacket.h"
00003 #include "dds_type_aliases.h"
00004 
00005 const char *
00006 __opensplice_dds_broker_GSDFPacket__name(void)
00007 {
00008     return (const char*)"opensplice_dds_broker::GSDFPacket";
00009 }
00010 
00011 const char *
00012 __opensplice_dds_broker_GSDFPacket__keys(void)
00013 {
00014     return (const char*)"";
00015 }
00016 
00017 #include <v_kernel.h>
00018 #include <v_topic.h>
00019 #include <os_stdlib.h>
00020 #include <string.h>
00021 #include <os_report.h>
00022 
00023 c_bool
00024 __opensplice_dds_broker_CharSeq__copyIn(
00025     c_base base,
00026     ::opensplice_dds_broker::CharSeq *from,
00027     _opensplice_dds_broker_CharSeq *to)
00028 {
00029     c_bool result = OS_C_TRUE;
00030     (void) base;
00031 
00032 /* Code generated by /home/dds/OvernightTests/tmp.Zi75hUiMaK/build/src/tools/idlpp/code/idl_genCorbaCxxCopyin.c at line 2411 */
00033 
00034     static c_type type0 = NULL;
00035     c_type subtype0 = NULL;
00036     c_long length0;
00037     c_char *dest0;
00038 
00039     if (type0 == NULL) {
00040         subtype0 = c_type(c_metaResolve (c_metaObject(base), "c_char"));
00041         type0 = c_metaSequenceTypeNew(c_metaObject(base),"C_SEQUENCE<c_char>",subtype0,0);
00042         c_free(subtype0);
00043     }
00044     length0 = (c_long)(*from).length();
00045 #ifdef OSPL_BOUNDS_CHECK
00046     dest0 = (c_char *)c_newSequence(c_collectionType(type0), length0);
00047     {
00048     /* Code generated by /home/dds/OvernightTests/tmp.Zi75hUiMaK/build/src/tools/idlpp/code/idl_genCorbaCxxCopyin.c at line 1873 */
00049             c_char *buf0;
00050         buf0 = (c_char *)(*from).get_buffer();
00051         memcpy (dest0,buf0,length0* sizeof(*dest0));
00052     }
00053     *to = (_opensplice_dds_broker_CharSeq)dest0;
00054 #else
00055     dest0 = (c_char *)c_newSequence(c_collectionType(type0), length0);
00056     {
00057     /* Code generated by /home/dds/OvernightTests/tmp.Zi75hUiMaK/build/src/tools/idlpp/code/idl_genCorbaCxxCopyin.c at line 1873 */
00058             c_char *buf0;
00059         buf0 = (c_char *)(*from).get_buffer();
00060         memcpy (dest0,buf0,length0* sizeof(*dest0));
00061     }
00062     *to = (_opensplice_dds_broker_CharSeq)dest0;
00063 #endif
00064     return result;
00065 }
00066 
00067 c_bool
00068 __opensplice_dds_broker_GSDFPacket__copyIn(
00069     c_base base,
00070     struct ::opensplice_dds_broker::GSDFPacket *from,
00071     struct _opensplice_dds_broker_GSDFPacket *to)
00072 {
00073     c_bool result = OS_C_TRUE;
00074     (void) base;
00075 
00076     if(result){
00077         extern c_bool __opensplice_dds_broker_CharSeq__copyIn(c_base, ::opensplice_dds_broker::CharSeq *, _opensplice_dds_broker_CharSeq *);
00078         result = __opensplice_dds_broker_CharSeq__copyIn(base, &from->data, &to->data);
00079     }
00080     return result;
00081 }
00082 
00083 void
00084 __opensplice_dds_broker_CharSeq__copyOut(
00085     void *_from,
00086     void *_to)
00087 {
00088     _opensplice_dds_broker_CharSeq *from = (_opensplice_dds_broker_CharSeq *)_from;
00089     ::opensplice_dds_broker::CharSeq *to = (::opensplice_dds_broker::CharSeq *)_to;
00090     long size0;
00091     c_char *src0 = (c_char *)(*from);
00092 
00093     size0 = c_arraySize(c_sequence(src0));
00094     (*to).length(size0);
00095     {
00096         c_char *buf0;
00097         buf0 = (c_char *)(*to).get_buffer();
00098         memcpy (buf0,src0,size0* sizeof(*buf0));
00099     }
00100 }
00101 
00102 void
00103 __opensplice_dds_broker_GSDFPacket__copyOut(
00104     void *_from,
00105     void *_to)
00106 {
00107     struct _opensplice_dds_broker_GSDFPacket *from = (struct _opensplice_dds_broker_GSDFPacket *)_from;
00108     struct ::opensplice_dds_broker::GSDFPacket *to = (struct ::opensplice_dds_broker::GSDFPacket *)_to;
00109     {
00110         extern void __opensplice_dds_broker_CharSeq__copyOut(void *, void *);
00111         __opensplice_dds_broker_CharSeq__copyOut((void *)&from->data, (void *)&to->data);
00112     }
00113 }
00114 


opensplice_dds_broker
Author(s):
autogenerated on Thu Jun 6 2019 18:52:31