$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/Tasks.msg */ 00002 #ifndef CONTINUOUS_OPS_MSGS_MESSAGE_TASKS_H 00003 #define CONTINUOUS_OPS_MSGS_MESSAGE_TASKS_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 "continuous_ops_msgs/Task.h" 00018 00019 namespace continuous_ops_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct Tasks_ { 00023 typedef Tasks_<ContainerAllocator> Type; 00024 00025 Tasks_() 00026 : tasks() 00027 { 00028 } 00029 00030 Tasks_(const ContainerAllocator& _alloc) 00031 : tasks(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::continuous_ops_msgs::Task_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::continuous_ops_msgs::Task_<ContainerAllocator> >::other > _tasks_type; 00036 std::vector< ::continuous_ops_msgs::Task_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::continuous_ops_msgs::Task_<ContainerAllocator> >::other > tasks; 00037 00038 00039 ROS_DEPRECATED uint32_t get_tasks_size() const { return (uint32_t)tasks.size(); } 00040 ROS_DEPRECATED void set_tasks_size(uint32_t size) { tasks.resize((size_t)size); } 00041 ROS_DEPRECATED void get_tasks_vec(std::vector< ::continuous_ops_msgs::Task_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::continuous_ops_msgs::Task_<ContainerAllocator> >::other > & vec) const { vec = this->tasks; } 00042 ROS_DEPRECATED void set_tasks_vec(const std::vector< ::continuous_ops_msgs::Task_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::continuous_ops_msgs::Task_<ContainerAllocator> >::other > & vec) { this->tasks = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "continuous_ops_msgs/Tasks"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "e6fac003aa050bdfb91de78e5697a3e5"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "Task[] tasks\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: continuous_ops_msgs/Task\n\ 00062 string name\n\ 00063 string description\n\ 00064 string task_id\n\ 00065 string run_id\n\ 00066 string launch_file\n\ 00067 string image_file\n\ 00068 string state\n\ 00069 string action_ns\n\ 00070 duration timeout\n\ 00071 "; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00078 { 00079 ros::serialization::OStream stream(write_ptr, 1000000000); 00080 ros::serialization::serialize(stream, tasks); 00081 return stream.getData(); 00082 } 00083 00084 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00085 { 00086 ros::serialization::IStream stream(read_ptr, 1000000000); 00087 ros::serialization::deserialize(stream, tasks); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint32_t serializationLength() const 00092 { 00093 uint32_t size = 0; 00094 size += ros::serialization::serializationLength(tasks); 00095 return size; 00096 } 00097 00098 typedef boost::shared_ptr< ::continuous_ops_msgs::Tasks_<ContainerAllocator> > Ptr; 00099 typedef boost::shared_ptr< ::continuous_ops_msgs::Tasks_<ContainerAllocator> const> ConstPtr; 00100 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00101 }; // struct Tasks 00102 typedef ::continuous_ops_msgs::Tasks_<std::allocator<void> > Tasks; 00103 00104 typedef boost::shared_ptr< ::continuous_ops_msgs::Tasks> TasksPtr; 00105 typedef boost::shared_ptr< ::continuous_ops_msgs::Tasks const> TasksConstPtr; 00106 00107 00108 template<typename ContainerAllocator> 00109 std::ostream& operator<<(std::ostream& s, const ::continuous_ops_msgs::Tasks_<ContainerAllocator> & v) 00110 { 00111 ros::message_operations::Printer< ::continuous_ops_msgs::Tasks_<ContainerAllocator> >::stream(s, "", v); 00112 return s;} 00113 00114 } // namespace continuous_ops_msgs 00115 00116 namespace ros 00117 { 00118 namespace message_traits 00119 { 00120 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::Tasks_<ContainerAllocator> > : public TrueType {}; 00121 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::Tasks_<ContainerAllocator> const> : public TrueType {}; 00122 template<class ContainerAllocator> 00123 struct MD5Sum< ::continuous_ops_msgs::Tasks_<ContainerAllocator> > { 00124 static const char* value() 00125 { 00126 return "e6fac003aa050bdfb91de78e5697a3e5"; 00127 } 00128 00129 static const char* value(const ::continuous_ops_msgs::Tasks_<ContainerAllocator> &) { return value(); } 00130 static const uint64_t static_value1 = 0xe6fac003aa050bdfULL; 00131 static const uint64_t static_value2 = 0xb91de78e5697a3e5ULL; 00132 }; 00133 00134 template<class ContainerAllocator> 00135 struct DataType< ::continuous_ops_msgs::Tasks_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "continuous_ops_msgs/Tasks"; 00139 } 00140 00141 static const char* value(const ::continuous_ops_msgs::Tasks_<ContainerAllocator> &) { return value(); } 00142 }; 00143 00144 template<class ContainerAllocator> 00145 struct Definition< ::continuous_ops_msgs::Tasks_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "Task[] tasks\n\ 00149 \n\ 00150 ================================================================================\n\ 00151 MSG: continuous_ops_msgs/Task\n\ 00152 string name\n\ 00153 string description\n\ 00154 string task_id\n\ 00155 string run_id\n\ 00156 string launch_file\n\ 00157 string image_file\n\ 00158 string state\n\ 00159 string action_ns\n\ 00160 duration timeout\n\ 00161 "; 00162 } 00163 00164 static const char* value(const ::continuous_ops_msgs::Tasks_<ContainerAllocator> &) { return value(); } 00165 }; 00166 00167 } // namespace message_traits 00168 } // namespace ros 00169 00170 namespace ros 00171 { 00172 namespace serialization 00173 { 00174 00175 template<class ContainerAllocator> struct Serializer< ::continuous_ops_msgs::Tasks_<ContainerAllocator> > 00176 { 00177 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00178 { 00179 stream.next(m.tasks); 00180 } 00181 00182 ROS_DECLARE_ALLINONE_SERIALIZER; 00183 }; // struct Tasks_ 00184 } // namespace serialization 00185 } // namespace ros 00186 00187 namespace ros 00188 { 00189 namespace message_operations 00190 { 00191 00192 template<class ContainerAllocator> 00193 struct Printer< ::continuous_ops_msgs::Tasks_<ContainerAllocator> > 00194 { 00195 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::continuous_ops_msgs::Tasks_<ContainerAllocator> & v) 00196 { 00197 s << indent << "tasks[]" << std::endl; 00198 for (size_t i = 0; i < v.tasks.size(); ++i) 00199 { 00200 s << indent << " tasks[" << i << "]: "; 00201 s << std::endl; 00202 s << indent; 00203 Printer< ::continuous_ops_msgs::Task_<ContainerAllocator> >::stream(s, indent + " ", v.tasks[i]); 00204 } 00205 } 00206 }; 00207 00208 00209 } // namespace message_operations 00210 } // namespace ros 00211 00212 #endif // CONTINUOUS_OPS_MSGS_MESSAGE_TASKS_H 00213