$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-continuous_ops/doc_stacks/2013-03-01_15-04-55.848441/continuous_ops/continuous_ops_msgs/msg/Task.msg */ 00002 #ifndef CONTINUOUS_OPS_MSGS_MESSAGE_TASK_H 00003 #define CONTINUOUS_OPS_MSGS_MESSAGE_TASK_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 00018 namespace continuous_ops_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct Task_ { 00022 typedef Task_<ContainerAllocator> Type; 00023 00024 Task_() 00025 : name() 00026 , description() 00027 , task_id() 00028 , run_id() 00029 , launch_file() 00030 , image_file() 00031 , state() 00032 , action_ns() 00033 , timeout() 00034 { 00035 } 00036 00037 Task_(const ContainerAllocator& _alloc) 00038 : name(_alloc) 00039 , description(_alloc) 00040 , task_id(_alloc) 00041 , run_id(_alloc) 00042 , launch_file(_alloc) 00043 , image_file(_alloc) 00044 , state(_alloc) 00045 , action_ns(_alloc) 00046 , timeout() 00047 { 00048 } 00049 00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00052 00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _description_type; 00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > description; 00055 00056 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _task_id_type; 00057 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > task_id; 00058 00059 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _run_id_type; 00060 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > run_id; 00061 00062 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _launch_file_type; 00063 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > launch_file; 00064 00065 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _image_file_type; 00066 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > image_file; 00067 00068 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _state_type; 00069 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > state; 00070 00071 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _action_ns_type; 00072 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > action_ns; 00073 00074 typedef ros::Duration _timeout_type; 00075 ros::Duration timeout; 00076 00077 00078 private: 00079 static const char* __s_getDataType_() { return "continuous_ops_msgs/Task"; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00082 00083 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00084 00085 private: 00086 static const char* __s_getMD5Sum_() { return "6e00694b70b1c0d56c53112587f3804c"; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00089 00090 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00091 00092 private: 00093 static const char* __s_getMessageDefinition_() { return "string name\n\ 00094 string description\n\ 00095 string task_id\n\ 00096 string run_id\n\ 00097 string launch_file\n\ 00098 string image_file\n\ 00099 string state\n\ 00100 string action_ns\n\ 00101 duration timeout\n\ 00102 "; } 00103 public: 00104 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00105 00106 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00107 00108 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00109 { 00110 ros::serialization::OStream stream(write_ptr, 1000000000); 00111 ros::serialization::serialize(stream, name); 00112 ros::serialization::serialize(stream, description); 00113 ros::serialization::serialize(stream, task_id); 00114 ros::serialization::serialize(stream, run_id); 00115 ros::serialization::serialize(stream, launch_file); 00116 ros::serialization::serialize(stream, image_file); 00117 ros::serialization::serialize(stream, state); 00118 ros::serialization::serialize(stream, action_ns); 00119 ros::serialization::serialize(stream, timeout); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00124 { 00125 ros::serialization::IStream stream(read_ptr, 1000000000); 00126 ros::serialization::deserialize(stream, name); 00127 ros::serialization::deserialize(stream, description); 00128 ros::serialization::deserialize(stream, task_id); 00129 ros::serialization::deserialize(stream, run_id); 00130 ros::serialization::deserialize(stream, launch_file); 00131 ros::serialization::deserialize(stream, image_file); 00132 ros::serialization::deserialize(stream, state); 00133 ros::serialization::deserialize(stream, action_ns); 00134 ros::serialization::deserialize(stream, timeout); 00135 return stream.getData(); 00136 } 00137 00138 ROS_DEPRECATED virtual uint32_t serializationLength() const 00139 { 00140 uint32_t size = 0; 00141 size += ros::serialization::serializationLength(name); 00142 size += ros::serialization::serializationLength(description); 00143 size += ros::serialization::serializationLength(task_id); 00144 size += ros::serialization::serializationLength(run_id); 00145 size += ros::serialization::serializationLength(launch_file); 00146 size += ros::serialization::serializationLength(image_file); 00147 size += ros::serialization::serializationLength(state); 00148 size += ros::serialization::serializationLength(action_ns); 00149 size += ros::serialization::serializationLength(timeout); 00150 return size; 00151 } 00152 00153 typedef boost::shared_ptr< ::continuous_ops_msgs::Task_<ContainerAllocator> > Ptr; 00154 typedef boost::shared_ptr< ::continuous_ops_msgs::Task_<ContainerAllocator> const> ConstPtr; 00155 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00156 }; // struct Task 00157 typedef ::continuous_ops_msgs::Task_<std::allocator<void> > Task; 00158 00159 typedef boost::shared_ptr< ::continuous_ops_msgs::Task> TaskPtr; 00160 typedef boost::shared_ptr< ::continuous_ops_msgs::Task const> TaskConstPtr; 00161 00162 00163 template<typename ContainerAllocator> 00164 std::ostream& operator<<(std::ostream& s, const ::continuous_ops_msgs::Task_<ContainerAllocator> & v) 00165 { 00166 ros::message_operations::Printer< ::continuous_ops_msgs::Task_<ContainerAllocator> >::stream(s, "", v); 00167 return s;} 00168 00169 } // namespace continuous_ops_msgs 00170 00171 namespace ros 00172 { 00173 namespace message_traits 00174 { 00175 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::Task_<ContainerAllocator> > : public TrueType {}; 00176 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::Task_<ContainerAllocator> const> : public TrueType {}; 00177 template<class ContainerAllocator> 00178 struct MD5Sum< ::continuous_ops_msgs::Task_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "6e00694b70b1c0d56c53112587f3804c"; 00182 } 00183 00184 static const char* value(const ::continuous_ops_msgs::Task_<ContainerAllocator> &) { return value(); } 00185 static const uint64_t static_value1 = 0x6e00694b70b1c0d5ULL; 00186 static const uint64_t static_value2 = 0x6c53112587f3804cULL; 00187 }; 00188 00189 template<class ContainerAllocator> 00190 struct DataType< ::continuous_ops_msgs::Task_<ContainerAllocator> > { 00191 static const char* value() 00192 { 00193 return "continuous_ops_msgs/Task"; 00194 } 00195 00196 static const char* value(const ::continuous_ops_msgs::Task_<ContainerAllocator> &) { return value(); } 00197 }; 00198 00199 template<class ContainerAllocator> 00200 struct Definition< ::continuous_ops_msgs::Task_<ContainerAllocator> > { 00201 static const char* value() 00202 { 00203 return "string name\n\ 00204 string description\n\ 00205 string task_id\n\ 00206 string run_id\n\ 00207 string launch_file\n\ 00208 string image_file\n\ 00209 string state\n\ 00210 string action_ns\n\ 00211 duration timeout\n\ 00212 "; 00213 } 00214 00215 static const char* value(const ::continuous_ops_msgs::Task_<ContainerAllocator> &) { return value(); } 00216 }; 00217 00218 } // namespace message_traits 00219 } // namespace ros 00220 00221 namespace ros 00222 { 00223 namespace serialization 00224 { 00225 00226 template<class ContainerAllocator> struct Serializer< ::continuous_ops_msgs::Task_<ContainerAllocator> > 00227 { 00228 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00229 { 00230 stream.next(m.name); 00231 stream.next(m.description); 00232 stream.next(m.task_id); 00233 stream.next(m.run_id); 00234 stream.next(m.launch_file); 00235 stream.next(m.image_file); 00236 stream.next(m.state); 00237 stream.next(m.action_ns); 00238 stream.next(m.timeout); 00239 } 00240 00241 ROS_DECLARE_ALLINONE_SERIALIZER; 00242 }; // struct Task_ 00243 } // namespace serialization 00244 } // namespace ros 00245 00246 namespace ros 00247 { 00248 namespace message_operations 00249 { 00250 00251 template<class ContainerAllocator> 00252 struct Printer< ::continuous_ops_msgs::Task_<ContainerAllocator> > 00253 { 00254 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::continuous_ops_msgs::Task_<ContainerAllocator> & v) 00255 { 00256 s << indent << "name: "; 00257 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name); 00258 s << indent << "description: "; 00259 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.description); 00260 s << indent << "task_id: "; 00261 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.task_id); 00262 s << indent << "run_id: "; 00263 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.run_id); 00264 s << indent << "launch_file: "; 00265 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.launch_file); 00266 s << indent << "image_file: "; 00267 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.image_file); 00268 s << indent << "state: "; 00269 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.state); 00270 s << indent << "action_ns: "; 00271 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.action_ns); 00272 s << indent << "timeout: "; 00273 Printer<ros::Duration>::stream(s, indent + " ", v.timeout); 00274 } 00275 }; 00276 00277 00278 } // namespace message_operations 00279 } // namespace ros 00280 00281 #endif // CONTINUOUS_OPS_MSGS_MESSAGE_TASK_H 00282