$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_knowledge/msg/TBoxObject.msg */ 00002 #ifndef SRS_KNOWLEDGE_MESSAGE_TBOXOBJECT_H 00003 #define SRS_KNOWLEDGE_MESSAGE_TBOXOBJECT_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 srs_knowledge 00019 { 00020 template <class ContainerAllocator> 00021 struct TBoxObject_ { 00022 typedef TBoxObject_<ContainerAllocator> Type; 00023 00024 TBoxObject_() 00025 : class_id(0) 00026 , name() 00027 , description() 00028 , properties() 00029 , subjects() 00030 { 00031 } 00032 00033 TBoxObject_(const ContainerAllocator& _alloc) 00034 : class_id(0) 00035 , name(_alloc) 00036 , description(_alloc) 00037 , properties(_alloc) 00038 , subjects(_alloc) 00039 { 00040 } 00041 00042 typedef int32_t _class_id_type; 00043 int32_t class_id; 00044 00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00047 00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _description_type; 00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > description; 00050 00051 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 > _properties_type; 00052 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 > properties; 00053 00054 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _subjects_type; 00055 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > subjects; 00056 00057 00058 ROS_DEPRECATED uint32_t get_properties_size() const { return (uint32_t)properties.size(); } 00059 ROS_DEPRECATED void set_properties_size(uint32_t size) { properties.resize((size_t)size); } 00060 ROS_DEPRECATED void get_properties_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->properties; } 00061 ROS_DEPRECATED void set_properties_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->properties = vec; } 00062 ROS_DEPRECATED uint32_t get_subjects_size() const { return (uint32_t)subjects.size(); } 00063 ROS_DEPRECATED void set_subjects_size(uint32_t size) { subjects.resize((size_t)size); } 00064 ROS_DEPRECATED void get_subjects_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->subjects; } 00065 ROS_DEPRECATED void set_subjects_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->subjects = vec; } 00066 private: 00067 static const char* __s_getDataType_() { return "srs_knowledge/TBoxObject"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00070 00071 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00072 00073 private: 00074 static const char* __s_getMD5Sum_() { return "fbdf9bcb056031485032d3fa4ff08d71"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00077 00078 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00079 00080 private: 00081 static const char* __s_getMessageDefinition_() { return "int32 class_id\n\ 00082 string name\n\ 00083 string description\n\ 00084 string[] properties\n\ 00085 int32[] subjects\n\ 00086 "; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00089 00090 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00091 00092 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00093 { 00094 ros::serialization::OStream stream(write_ptr, 1000000000); 00095 ros::serialization::serialize(stream, class_id); 00096 ros::serialization::serialize(stream, name); 00097 ros::serialization::serialize(stream, description); 00098 ros::serialization::serialize(stream, properties); 00099 ros::serialization::serialize(stream, subjects); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00104 { 00105 ros::serialization::IStream stream(read_ptr, 1000000000); 00106 ros::serialization::deserialize(stream, class_id); 00107 ros::serialization::deserialize(stream, name); 00108 ros::serialization::deserialize(stream, description); 00109 ros::serialization::deserialize(stream, properties); 00110 ros::serialization::deserialize(stream, subjects); 00111 return stream.getData(); 00112 } 00113 00114 ROS_DEPRECATED virtual uint32_t serializationLength() const 00115 { 00116 uint32_t size = 0; 00117 size += ros::serialization::serializationLength(class_id); 00118 size += ros::serialization::serializationLength(name); 00119 size += ros::serialization::serializationLength(description); 00120 size += ros::serialization::serializationLength(properties); 00121 size += ros::serialization::serializationLength(subjects); 00122 return size; 00123 } 00124 00125 typedef boost::shared_ptr< ::srs_knowledge::TBoxObject_<ContainerAllocator> > Ptr; 00126 typedef boost::shared_ptr< ::srs_knowledge::TBoxObject_<ContainerAllocator> const> ConstPtr; 00127 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00128 }; // struct TBoxObject 00129 typedef ::srs_knowledge::TBoxObject_<std::allocator<void> > TBoxObject; 00130 00131 typedef boost::shared_ptr< ::srs_knowledge::TBoxObject> TBoxObjectPtr; 00132 typedef boost::shared_ptr< ::srs_knowledge::TBoxObject const> TBoxObjectConstPtr; 00133 00134 00135 template<typename ContainerAllocator> 00136 std::ostream& operator<<(std::ostream& s, const ::srs_knowledge::TBoxObject_<ContainerAllocator> & v) 00137 { 00138 ros::message_operations::Printer< ::srs_knowledge::TBoxObject_<ContainerAllocator> >::stream(s, "", v); 00139 return s;} 00140 00141 } // namespace srs_knowledge 00142 00143 namespace ros 00144 { 00145 namespace message_traits 00146 { 00147 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::TBoxObject_<ContainerAllocator> > : public TrueType {}; 00148 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::TBoxObject_<ContainerAllocator> const> : public TrueType {}; 00149 template<class ContainerAllocator> 00150 struct MD5Sum< ::srs_knowledge::TBoxObject_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "fbdf9bcb056031485032d3fa4ff08d71"; 00154 } 00155 00156 static const char* value(const ::srs_knowledge::TBoxObject_<ContainerAllocator> &) { return value(); } 00157 static const uint64_t static_value1 = 0xfbdf9bcb05603148ULL; 00158 static const uint64_t static_value2 = 0x5032d3fa4ff08d71ULL; 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct DataType< ::srs_knowledge::TBoxObject_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "srs_knowledge/TBoxObject"; 00166 } 00167 00168 static const char* value(const ::srs_knowledge::TBoxObject_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct Definition< ::srs_knowledge::TBoxObject_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "int32 class_id\n\ 00176 string name\n\ 00177 string description\n\ 00178 string[] properties\n\ 00179 int32[] subjects\n\ 00180 "; 00181 } 00182 00183 static const char* value(const ::srs_knowledge::TBoxObject_<ContainerAllocator> &) { return value(); } 00184 }; 00185 00186 } // namespace message_traits 00187 } // namespace ros 00188 00189 namespace ros 00190 { 00191 namespace serialization 00192 { 00193 00194 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::TBoxObject_<ContainerAllocator> > 00195 { 00196 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00197 { 00198 stream.next(m.class_id); 00199 stream.next(m.name); 00200 stream.next(m.description); 00201 stream.next(m.properties); 00202 stream.next(m.subjects); 00203 } 00204 00205 ROS_DECLARE_ALLINONE_SERIALIZER; 00206 }; // struct TBoxObject_ 00207 } // namespace serialization 00208 } // namespace ros 00209 00210 namespace ros 00211 { 00212 namespace message_operations 00213 { 00214 00215 template<class ContainerAllocator> 00216 struct Printer< ::srs_knowledge::TBoxObject_<ContainerAllocator> > 00217 { 00218 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_knowledge::TBoxObject_<ContainerAllocator> & v) 00219 { 00220 s << indent << "class_id: "; 00221 Printer<int32_t>::stream(s, indent + " ", v.class_id); 00222 s << indent << "name: "; 00223 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name); 00224 s << indent << "description: "; 00225 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.description); 00226 s << indent << "properties[]" << std::endl; 00227 for (size_t i = 0; i < v.properties.size(); ++i) 00228 { 00229 s << indent << " properties[" << i << "]: "; 00230 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.properties[i]); 00231 } 00232 s << indent << "subjects[]" << std::endl; 00233 for (size_t i = 0; i < v.subjects.size(); ++i) 00234 { 00235 s << indent << " subjects[" << i << "]: "; 00236 Printer<int32_t>::stream(s, indent + " ", v.subjects[i]); 00237 } 00238 } 00239 }; 00240 00241 00242 } // namespace message_operations 00243 } // namespace ros 00244 00245 #endif // SRS_KNOWLEDGE_MESSAGE_TBOXOBJECT_H 00246