$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-flirtlib_features/doc_stacks/2013-03-01_15-30-29.334793/flirtlib_features/flirtlib_ros/msg/Vector.msg */ 00002 #ifndef FLIRTLIB_ROS_MESSAGE_VECTOR_H 00003 #define FLIRTLIB_ROS_MESSAGE_VECTOR_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 flirtlib_ros 00019 { 00020 template <class ContainerAllocator> 00021 struct Vector_ { 00022 typedef Vector_<ContainerAllocator> Type; 00023 00024 Vector_() 00025 : vec() 00026 { 00027 } 00028 00029 Vector_(const ContainerAllocator& _alloc) 00030 : vec(_alloc) 00031 { 00032 } 00033 00034 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _vec_type; 00035 std::vector<double, typename ContainerAllocator::template rebind<double>::other > vec; 00036 00037 00038 ROS_DEPRECATED uint32_t get_vec_size() const { return (uint32_t)vec.size(); } 00039 ROS_DEPRECATED void set_vec_size(uint32_t size) { vec.resize((size_t)size); } 00040 ROS_DEPRECATED void get_vec_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->vec; } 00041 ROS_DEPRECATED void set_vec_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->vec = vec; } 00042 private: 00043 static const char* __s_getDataType_() { return "flirtlib_ros/Vector"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "d7cb80c523ff12d27e3ad06be93d3a09"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getMessageDefinition_() { return "# Vector message type used by a bunch of the flirtlib messages\n\ 00058 \n\ 00059 float64[] vec\n\ 00060 "; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00063 00064 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00065 00066 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00067 { 00068 ros::serialization::OStream stream(write_ptr, 1000000000); 00069 ros::serialization::serialize(stream, vec); 00070 return stream.getData(); 00071 } 00072 00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00074 { 00075 ros::serialization::IStream stream(read_ptr, 1000000000); 00076 ros::serialization::deserialize(stream, vec); 00077 return stream.getData(); 00078 } 00079 00080 ROS_DEPRECATED virtual uint32_t serializationLength() const 00081 { 00082 uint32_t size = 0; 00083 size += ros::serialization::serializationLength(vec); 00084 return size; 00085 } 00086 00087 typedef boost::shared_ptr< ::flirtlib_ros::Vector_<ContainerAllocator> > Ptr; 00088 typedef boost::shared_ptr< ::flirtlib_ros::Vector_<ContainerAllocator> const> ConstPtr; 00089 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00090 }; // struct Vector 00091 typedef ::flirtlib_ros::Vector_<std::allocator<void> > Vector; 00092 00093 typedef boost::shared_ptr< ::flirtlib_ros::Vector> VectorPtr; 00094 typedef boost::shared_ptr< ::flirtlib_ros::Vector const> VectorConstPtr; 00095 00096 00097 template<typename ContainerAllocator> 00098 std::ostream& operator<<(std::ostream& s, const ::flirtlib_ros::Vector_<ContainerAllocator> & v) 00099 { 00100 ros::message_operations::Printer< ::flirtlib_ros::Vector_<ContainerAllocator> >::stream(s, "", v); 00101 return s;} 00102 00103 } // namespace flirtlib_ros 00104 00105 namespace ros 00106 { 00107 namespace message_traits 00108 { 00109 template<class ContainerAllocator> struct IsMessage< ::flirtlib_ros::Vector_<ContainerAllocator> > : public TrueType {}; 00110 template<class ContainerAllocator> struct IsMessage< ::flirtlib_ros::Vector_<ContainerAllocator> const> : public TrueType {}; 00111 template<class ContainerAllocator> 00112 struct MD5Sum< ::flirtlib_ros::Vector_<ContainerAllocator> > { 00113 static const char* value() 00114 { 00115 return "d7cb80c523ff12d27e3ad06be93d3a09"; 00116 } 00117 00118 static const char* value(const ::flirtlib_ros::Vector_<ContainerAllocator> &) { return value(); } 00119 static const uint64_t static_value1 = 0xd7cb80c523ff12d2ULL; 00120 static const uint64_t static_value2 = 0x7e3ad06be93d3a09ULL; 00121 }; 00122 00123 template<class ContainerAllocator> 00124 struct DataType< ::flirtlib_ros::Vector_<ContainerAllocator> > { 00125 static const char* value() 00126 { 00127 return "flirtlib_ros/Vector"; 00128 } 00129 00130 static const char* value(const ::flirtlib_ros::Vector_<ContainerAllocator> &) { return value(); } 00131 }; 00132 00133 template<class ContainerAllocator> 00134 struct Definition< ::flirtlib_ros::Vector_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "# Vector message type used by a bunch of the flirtlib messages\n\ 00138 \n\ 00139 float64[] vec\n\ 00140 "; 00141 } 00142 00143 static const char* value(const ::flirtlib_ros::Vector_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 } // namespace message_traits 00147 } // namespace ros 00148 00149 namespace ros 00150 { 00151 namespace serialization 00152 { 00153 00154 template<class ContainerAllocator> struct Serializer< ::flirtlib_ros::Vector_<ContainerAllocator> > 00155 { 00156 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00157 { 00158 stream.next(m.vec); 00159 } 00160 00161 ROS_DECLARE_ALLINONE_SERIALIZER; 00162 }; // struct Vector_ 00163 } // namespace serialization 00164 } // namespace ros 00165 00166 namespace ros 00167 { 00168 namespace message_operations 00169 { 00170 00171 template<class ContainerAllocator> 00172 struct Printer< ::flirtlib_ros::Vector_<ContainerAllocator> > 00173 { 00174 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::flirtlib_ros::Vector_<ContainerAllocator> & v) 00175 { 00176 s << indent << "vec[]" << std::endl; 00177 for (size_t i = 0; i < v.vec.size(); ++i) 00178 { 00179 s << indent << " vec[" << i << "]: "; 00180 Printer<double>::stream(s, indent + " ", v.vec[i]); 00181 } 00182 } 00183 }; 00184 00185 00186 } // namespace message_operations 00187 } // namespace ros 00188 00189 #endif // FLIRTLIB_ROS_MESSAGE_VECTOR_H 00190