HeaderSplDcps.cpp
Go to the documentation of this file.
00001 #include "HeaderSplDcps.h"
00002 #include "ccpp_Header.h"
00003 
00004 const char *
00005 __Header__name(void)
00006 {
00007     return (const char*)"Header";
00008 }
00009 
00010 const char *
00011 __Header__keys(void)
00012 {
00013     return (const char*)"";
00014 }
00015 
00016 #include <v_kernel.h>
00017 #include <v_topic.h>
00018 #include <os_stdlib.h>
00019 #include <string.h>
00020 #include <os_report.h>
00021 
00022 c_bool
00023 __Header__copyIn(
00024     c_base base,
00025     struct Header *from,
00026     struct _Header *to)
00027 {
00028     c_bool result = TRUE;
00029 
00030     to->seq = (c_ulong)from->seq;
00031     if(result){
00032         extern c_bool __Time__copyIn(c_base, Time *, _Time *);
00033         result = __Time__copyIn(base, &from->stamp, &to->stamp);
00034     }
00035 #ifdef OSPL_BOUNDS_CHECK
00036     if(from->frame_id){
00037         to->frame_id = c_stringNew(base, from->frame_id);
00038     } else {
00039         result = FALSE;
00040     }
00041 #else
00042     to->frame_id = c_stringNew(base, from->frame_id);
00043 #endif
00044     return result;
00045 }
00046 
00047 void
00048 __Header__copyOut(
00049     void *_from,
00050     void *_to)
00051 {
00052     struct _Header *from = (struct _Header *)_from;
00053     struct Header *to = (struct Header *)_to;
00054     to->seq = (::DDS::ULong)from->seq;
00055     {
00056         extern void __Time__copyOut(void *, void *);
00057         __Time__copyOut((void *)&from->stamp, (void *)&to->stamp);
00058     }
00059     to->frame_id = CORBA::string_dup(from->frame_id);
00060 }
00061 


proxyPoseStamped
Author(s): Ronny Hartanto
autogenerated on Mon Oct 6 2014 06:54:41