00001
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 typedef boost::shared_ptr< ::srs_knowledge::TBoxObject_<ContainerAllocator> > Ptr;
00059 typedef boost::shared_ptr< ::srs_knowledge::TBoxObject_<ContainerAllocator> const> ConstPtr;
00060 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 };
00062 typedef ::srs_knowledge::TBoxObject_<std::allocator<void> > TBoxObject;
00063
00064 typedef boost::shared_ptr< ::srs_knowledge::TBoxObject> TBoxObjectPtr;
00065 typedef boost::shared_ptr< ::srs_knowledge::TBoxObject const> TBoxObjectConstPtr;
00066
00067
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const ::srs_knowledge::TBoxObject_<ContainerAllocator> & v)
00070 {
00071 ros::message_operations::Printer< ::srs_knowledge::TBoxObject_<ContainerAllocator> >::stream(s, "", v);
00072 return s;}
00073
00074 }
00075
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::TBoxObject_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::TBoxObject_<ContainerAllocator> const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::srs_knowledge::TBoxObject_<ContainerAllocator> > {
00084 static const char* value()
00085 {
00086 return "fbdf9bcb056031485032d3fa4ff08d71";
00087 }
00088
00089 static const char* value(const ::srs_knowledge::TBoxObject_<ContainerAllocator> &) { return value(); }
00090 static const uint64_t static_value1 = 0xfbdf9bcb05603148ULL;
00091 static const uint64_t static_value2 = 0x5032d3fa4ff08d71ULL;
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct DataType< ::srs_knowledge::TBoxObject_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "srs_knowledge/TBoxObject";
00099 }
00100
00101 static const char* value(const ::srs_knowledge::TBoxObject_<ContainerAllocator> &) { return value(); }
00102 };
00103
00104 template<class ContainerAllocator>
00105 struct Definition< ::srs_knowledge::TBoxObject_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "int32 class_id\n\
00109 string name\n\
00110 string description\n\
00111 string[] properties\n\
00112 int32[] subjects\n\
00113 ";
00114 }
00115
00116 static const char* value(const ::srs_knowledge::TBoxObject_<ContainerAllocator> &) { return value(); }
00117 };
00118
00119 }
00120 }
00121
00122 namespace ros
00123 {
00124 namespace serialization
00125 {
00126
00127 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::TBoxObject_<ContainerAllocator> >
00128 {
00129 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00130 {
00131 stream.next(m.class_id);
00132 stream.next(m.name);
00133 stream.next(m.description);
00134 stream.next(m.properties);
00135 stream.next(m.subjects);
00136 }
00137
00138 ROS_DECLARE_ALLINONE_SERIALIZER;
00139 };
00140 }
00141 }
00142
00143 namespace ros
00144 {
00145 namespace message_operations
00146 {
00147
00148 template<class ContainerAllocator>
00149 struct Printer< ::srs_knowledge::TBoxObject_<ContainerAllocator> >
00150 {
00151 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_knowledge::TBoxObject_<ContainerAllocator> & v)
00152 {
00153 s << indent << "class_id: ";
00154 Printer<int32_t>::stream(s, indent + " ", v.class_id);
00155 s << indent << "name: ";
00156 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00157 s << indent << "description: ";
00158 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.description);
00159 s << indent << "properties[]" << std::endl;
00160 for (size_t i = 0; i < v.properties.size(); ++i)
00161 {
00162 s << indent << " properties[" << i << "]: ";
00163 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.properties[i]);
00164 }
00165 s << indent << "subjects[]" << std::endl;
00166 for (size_t i = 0; i < v.subjects.size(); ++i)
00167 {
00168 s << indent << " subjects[" << i << "]: ";
00169 Printer<int32_t>::stream(s, indent + " ", v.subjects[i]);
00170 }
00171 }
00172 };
00173
00174
00175 }
00176 }
00177
00178 #endif // SRS_KNOWLEDGE_MESSAGE_TBOXOBJECT_H
00179