$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tue/doc_stacks/2013-03-05_12-23-27.283047/wire/problib/msg/DimensionDescription.msg */ 00002 #ifndef PROBLIB_MESSAGE_DIMENSIONDESCRIPTION_H 00003 #define PROBLIB_MESSAGE_DIMENSIONDESCRIPTION_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 problib 00019 { 00020 template <class ContainerAllocator> 00021 struct DimensionDescription_ { 00022 typedef DimensionDescription_<ContainerAllocator> Type; 00023 00024 DimensionDescription_() 00025 : fields() 00026 { 00027 } 00028 00029 DimensionDescription_(const ContainerAllocator& _alloc) 00030 : fields(_alloc) 00031 { 00032 } 00033 00034 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _fields_type; 00035 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > fields; 00036 00037 00038 ROS_DEPRECATED uint32_t get_fields_size() const { return (uint32_t)fields.size(); } 00039 ROS_DEPRECATED void set_fields_size(uint32_t size) { fields.resize((size_t)size); } 00040 ROS_DEPRECATED void get_fields_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->fields; } 00041 ROS_DEPRECATED void set_fields_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->fields = vec; } 00042 private: 00043 static const char* __s_getDataType_() { return "problib/DimensionDescription"; } 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 "1ce1ec0f6aa14b038f5e1590ee0733a2"; } 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 "# example: object1.pos_x = [\"object1\", \"pos_x\"]\n\ 00058 string[] fields\n\ 00059 \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, fields); 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, fields); 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(fields); 00084 return size; 00085 } 00086 00087 typedef boost::shared_ptr< ::problib::DimensionDescription_<ContainerAllocator> > Ptr; 00088 typedef boost::shared_ptr< ::problib::DimensionDescription_<ContainerAllocator> const> ConstPtr; 00089 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00090 }; // struct DimensionDescription 00091 typedef ::problib::DimensionDescription_<std::allocator<void> > DimensionDescription; 00092 00093 typedef boost::shared_ptr< ::problib::DimensionDescription> DimensionDescriptionPtr; 00094 typedef boost::shared_ptr< ::problib::DimensionDescription const> DimensionDescriptionConstPtr; 00095 00096 00097 template<typename ContainerAllocator> 00098 std::ostream& operator<<(std::ostream& s, const ::problib::DimensionDescription_<ContainerAllocator> & v) 00099 { 00100 ros::message_operations::Printer< ::problib::DimensionDescription_<ContainerAllocator> >::stream(s, "", v); 00101 return s;} 00102 00103 } // namespace problib 00104 00105 namespace ros 00106 { 00107 namespace message_traits 00108 { 00109 template<class ContainerAllocator> struct IsMessage< ::problib::DimensionDescription_<ContainerAllocator> > : public TrueType {}; 00110 template<class ContainerAllocator> struct IsMessage< ::problib::DimensionDescription_<ContainerAllocator> const> : public TrueType {}; 00111 template<class ContainerAllocator> 00112 struct MD5Sum< ::problib::DimensionDescription_<ContainerAllocator> > { 00113 static const char* value() 00114 { 00115 return "1ce1ec0f6aa14b038f5e1590ee0733a2"; 00116 } 00117 00118 static const char* value(const ::problib::DimensionDescription_<ContainerAllocator> &) { return value(); } 00119 static const uint64_t static_value1 = 0x1ce1ec0f6aa14b03ULL; 00120 static const uint64_t static_value2 = 0x8f5e1590ee0733a2ULL; 00121 }; 00122 00123 template<class ContainerAllocator> 00124 struct DataType< ::problib::DimensionDescription_<ContainerAllocator> > { 00125 static const char* value() 00126 { 00127 return "problib/DimensionDescription"; 00128 } 00129 00130 static const char* value(const ::problib::DimensionDescription_<ContainerAllocator> &) { return value(); } 00131 }; 00132 00133 template<class ContainerAllocator> 00134 struct Definition< ::problib::DimensionDescription_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "# example: object1.pos_x = [\"object1\", \"pos_x\"]\n\ 00138 string[] fields\n\ 00139 \n\ 00140 "; 00141 } 00142 00143 static const char* value(const ::problib::DimensionDescription_<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< ::problib::DimensionDescription_<ContainerAllocator> > 00155 { 00156 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00157 { 00158 stream.next(m.fields); 00159 } 00160 00161 ROS_DECLARE_ALLINONE_SERIALIZER; 00162 }; // struct DimensionDescription_ 00163 } // namespace serialization 00164 } // namespace ros 00165 00166 namespace ros 00167 { 00168 namespace message_operations 00169 { 00170 00171 template<class ContainerAllocator> 00172 struct Printer< ::problib::DimensionDescription_<ContainerAllocator> > 00173 { 00174 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::problib::DimensionDescription_<ContainerAllocator> & v) 00175 { 00176 s << indent << "fields[]" << std::endl; 00177 for (size_t i = 0; i < v.fields.size(); ++i) 00178 { 00179 s << indent << " fields[" << i << "]: "; 00180 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.fields[i]); 00181 } 00182 } 00183 }; 00184 00185 00186 } // namespace message_operations 00187 } // namespace ros 00188 00189 #endif // PROBLIB_MESSAGE_DIMENSIONDESCRIPTION_H 00190