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