1 #ifndef _ROS_SERVICE_FrameGraph_h
2 #define _ROS_SERVICE_FrameGraph_h
21 virtual int serialize(
unsigned char *outbuffer)
const
34 const char *
getMD5(){
return "d41d8cd98f00b204e9800998ecf8427e"; };
48 virtual int serialize(
unsigned char *outbuffer)
const
51 uint32_t length_dot_graph = strlen(this->
dot_graph);
52 memcpy(outbuffer + offset, &length_dot_graph,
sizeof(uint32_t));
54 memcpy(outbuffer + offset, this->
dot_graph, length_dot_graph);
55 offset += length_dot_graph;
62 uint32_t length_dot_graph;
63 memcpy(&length_dot_graph, (inbuffer + offset),
sizeof(uint32_t));
65 for(
unsigned int k= offset; k< offset+length_dot_graph; ++k){
66 inbuffer[k-1]=inbuffer[k];
68 inbuffer[offset+length_dot_graph-1]=0;
69 this->
dot_graph = (
char *)(inbuffer + offset-1);
70 offset += length_dot_graph;
75 const char *
getMD5(){
return "c4af9ac907e58e906eb0b6e3c58478c0"; };
const char * dot_graph
Definition: FrameGraph.h:41
Definition: FrameGraph.h:13
const char * getType()
Definition: FrameGraph.h:74
virtual int serialize(unsigned char *outbuffer) const
Definition: FrameGraph.h:21
virtual int deserialize(unsigned char *inbuffer)
Definition: FrameGraph.h:59
Definition: FrameGraph.h:79
virtual int deserialize(unsigned char *inbuffer)
Definition: FrameGraph.h:27
const char * getMD5()
Definition: FrameGraph.h:75
FrameGraphResponse Response
Definition: FrameGraph.h:82
virtual int serialize(unsigned char *outbuffer) const
Definition: FrameGraph.h:48
FrameGraphRequest Request
Definition: FrameGraph.h:81
FrameGraphResponse()
Definition: FrameGraph.h:43
static const char FRAMEGRAPH[]
Definition: FrameGraph.h:11
FrameGraphRequest()
Definition: FrameGraph.h:17
const char * getType()
Definition: FrameGraph.h:33
const char * getMD5()
Definition: FrameGraph.h:34
Definition: FrameGraph.h:38