$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-timn/doc_stacks/2013-03-05_12-22-59.617495/rosspawn/msg/NodeEvent.msg */ 00002 #ifndef ROSSPAWN_MESSAGE_NODEEVENT_H 00003 #define ROSSPAWN_MESSAGE_NODEEVENT_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 #include "std_msgs/Header.h" 00018 00019 namespace rosspawn 00020 { 00021 template <class ContainerAllocator> 00022 struct NodeEvent_ { 00023 typedef NodeEvent_<ContainerAllocator> Type; 00024 00025 NodeEvent_() 00026 : header() 00027 , event_type(0) 00028 , node_name() 00029 , message() 00030 { 00031 } 00032 00033 NodeEvent_(const ContainerAllocator& _alloc) 00034 : header(_alloc) 00035 , event_type(0) 00036 , node_name(_alloc) 00037 , message(_alloc) 00038 { 00039 } 00040 00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00042 ::std_msgs::Header_<ContainerAllocator> header; 00043 00044 typedef int8_t _event_type_type; 00045 int8_t event_type; 00046 00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _node_name_type; 00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > node_name; 00049 00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _message_type; 00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > message; 00052 00053 enum { NODE_STARTED = 1 }; 00054 enum { NODE_DIED = 2 }; 00055 enum { NODE_PAUSED = 4 }; 00056 enum { NODE_CONTINUED = 8 }; 00057 enum { NODE_SEGFAULT = 16 }; 00058 00059 private: 00060 static const char* __s_getDataType_() { return "rosspawn/NodeEvent"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00063 00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00065 00066 private: 00067 static const char* __s_getMD5Sum_() { return "49514581867201ce179f80cf1fe24cf6"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "##\n\ 00075 ## Event type constants\n\ 00076 ##\n\ 00077 byte NODE_STARTED=1\n\ 00078 byte NODE_DIED=2\n\ 00079 byte NODE_PAUSED=4\n\ 00080 byte NODE_CONTINUED=8\n\ 00081 byte NODE_SEGFAULT=16\n\ 00082 ##\n\ 00083 ## Fields\n\ 00084 ##\n\ 00085 Header header\n\ 00086 byte event_type\n\ 00087 string node_name\n\ 00088 string message\n\ 00089 \n\ 00090 ================================================================================\n\ 00091 MSG: std_msgs/Header\n\ 00092 # Standard metadata for higher-level stamped data types.\n\ 00093 # This is generally used to communicate timestamped data \n\ 00094 # in a particular coordinate frame.\n\ 00095 # \n\ 00096 # sequence ID: consecutively increasing ID \n\ 00097 uint32 seq\n\ 00098 #Two-integer timestamp that is expressed as:\n\ 00099 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00100 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00101 # time-handling sugar is provided by the client library\n\ 00102 time stamp\n\ 00103 #Frame this data is associated with\n\ 00104 # 0: no frame\n\ 00105 # 1: global frame\n\ 00106 string frame_id\n\ 00107 \n\ 00108 "; } 00109 public: 00110 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00111 00112 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00113 00114 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00115 { 00116 ros::serialization::OStream stream(write_ptr, 1000000000); 00117 ros::serialization::serialize(stream, header); 00118 ros::serialization::serialize(stream, event_type); 00119 ros::serialization::serialize(stream, node_name); 00120 ros::serialization::serialize(stream, message); 00121 return stream.getData(); 00122 } 00123 00124 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00125 { 00126 ros::serialization::IStream stream(read_ptr, 1000000000); 00127 ros::serialization::deserialize(stream, header); 00128 ros::serialization::deserialize(stream, event_type); 00129 ros::serialization::deserialize(stream, node_name); 00130 ros::serialization::deserialize(stream, message); 00131 return stream.getData(); 00132 } 00133 00134 ROS_DEPRECATED virtual uint32_t serializationLength() const 00135 { 00136 uint32_t size = 0; 00137 size += ros::serialization::serializationLength(header); 00138 size += ros::serialization::serializationLength(event_type); 00139 size += ros::serialization::serializationLength(node_name); 00140 size += ros::serialization::serializationLength(message); 00141 return size; 00142 } 00143 00144 typedef boost::shared_ptr< ::rosspawn::NodeEvent_<ContainerAllocator> > Ptr; 00145 typedef boost::shared_ptr< ::rosspawn::NodeEvent_<ContainerAllocator> const> ConstPtr; 00146 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00147 }; // struct NodeEvent 00148 typedef ::rosspawn::NodeEvent_<std::allocator<void> > NodeEvent; 00149 00150 typedef boost::shared_ptr< ::rosspawn::NodeEvent> NodeEventPtr; 00151 typedef boost::shared_ptr< ::rosspawn::NodeEvent const> NodeEventConstPtr; 00152 00153 00154 template<typename ContainerAllocator> 00155 std::ostream& operator<<(std::ostream& s, const ::rosspawn::NodeEvent_<ContainerAllocator> & v) 00156 { 00157 ros::message_operations::Printer< ::rosspawn::NodeEvent_<ContainerAllocator> >::stream(s, "", v); 00158 return s;} 00159 00160 } // namespace rosspawn 00161 00162 namespace ros 00163 { 00164 namespace message_traits 00165 { 00166 template<class ContainerAllocator> struct IsMessage< ::rosspawn::NodeEvent_<ContainerAllocator> > : public TrueType {}; 00167 template<class ContainerAllocator> struct IsMessage< ::rosspawn::NodeEvent_<ContainerAllocator> const> : public TrueType {}; 00168 template<class ContainerAllocator> 00169 struct MD5Sum< ::rosspawn::NodeEvent_<ContainerAllocator> > { 00170 static const char* value() 00171 { 00172 return "49514581867201ce179f80cf1fe24cf6"; 00173 } 00174 00175 static const char* value(const ::rosspawn::NodeEvent_<ContainerAllocator> &) { return value(); } 00176 static const uint64_t static_value1 = 0x49514581867201ceULL; 00177 static const uint64_t static_value2 = 0x179f80cf1fe24cf6ULL; 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct DataType< ::rosspawn::NodeEvent_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "rosspawn/NodeEvent"; 00185 } 00186 00187 static const char* value(const ::rosspawn::NodeEvent_<ContainerAllocator> &) { return value(); } 00188 }; 00189 00190 template<class ContainerAllocator> 00191 struct Definition< ::rosspawn::NodeEvent_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "##\n\ 00195 ## Event type constants\n\ 00196 ##\n\ 00197 byte NODE_STARTED=1\n\ 00198 byte NODE_DIED=2\n\ 00199 byte NODE_PAUSED=4\n\ 00200 byte NODE_CONTINUED=8\n\ 00201 byte NODE_SEGFAULT=16\n\ 00202 ##\n\ 00203 ## Fields\n\ 00204 ##\n\ 00205 Header header\n\ 00206 byte event_type\n\ 00207 string node_name\n\ 00208 string message\n\ 00209 \n\ 00210 ================================================================================\n\ 00211 MSG: std_msgs/Header\n\ 00212 # Standard metadata for higher-level stamped data types.\n\ 00213 # This is generally used to communicate timestamped data \n\ 00214 # in a particular coordinate frame.\n\ 00215 # \n\ 00216 # sequence ID: consecutively increasing ID \n\ 00217 uint32 seq\n\ 00218 #Two-integer timestamp that is expressed as:\n\ 00219 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00220 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00221 # time-handling sugar is provided by the client library\n\ 00222 time stamp\n\ 00223 #Frame this data is associated with\n\ 00224 # 0: no frame\n\ 00225 # 1: global frame\n\ 00226 string frame_id\n\ 00227 \n\ 00228 "; 00229 } 00230 00231 static const char* value(const ::rosspawn::NodeEvent_<ContainerAllocator> &) { return value(); } 00232 }; 00233 00234 template<class ContainerAllocator> struct HasHeader< ::rosspawn::NodeEvent_<ContainerAllocator> > : public TrueType {}; 00235 template<class ContainerAllocator> struct HasHeader< const ::rosspawn::NodeEvent_<ContainerAllocator> > : public TrueType {}; 00236 } // namespace message_traits 00237 } // namespace ros 00238 00239 namespace ros 00240 { 00241 namespace serialization 00242 { 00243 00244 template<class ContainerAllocator> struct Serializer< ::rosspawn::NodeEvent_<ContainerAllocator> > 00245 { 00246 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00247 { 00248 stream.next(m.header); 00249 stream.next(m.event_type); 00250 stream.next(m.node_name); 00251 stream.next(m.message); 00252 } 00253 00254 ROS_DECLARE_ALLINONE_SERIALIZER; 00255 }; // struct NodeEvent_ 00256 } // namespace serialization 00257 } // namespace ros 00258 00259 namespace ros 00260 { 00261 namespace message_operations 00262 { 00263 00264 template<class ContainerAllocator> 00265 struct Printer< ::rosspawn::NodeEvent_<ContainerAllocator> > 00266 { 00267 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::rosspawn::NodeEvent_<ContainerAllocator> & v) 00268 { 00269 s << indent << "header: "; 00270 s << std::endl; 00271 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00272 s << indent << "event_type: "; 00273 Printer<int8_t>::stream(s, indent + " ", v.event_type); 00274 s << indent << "node_name: "; 00275 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.node_name); 00276 s << indent << "message: "; 00277 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.message); 00278 } 00279 }; 00280 00281 00282 } // namespace message_operations 00283 } // namespace ros 00284 00285 #endif // ROSSPAWN_MESSAGE_NODEEVENT_H 00286