Go to the documentation of this file.00001
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_VARIANTMAPARRAY_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_VARIANTMAPARRAY_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 #include "std_msgs/Header.h"
00018 #include "nasa_r2_common_msgs/VariantMap.h"
00019
00020 namespace nasa_r2_common_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct VariantMapArray_ {
00024 typedef VariantMapArray_<ContainerAllocator> Type;
00025
00026 VariantMapArray_()
00027 : header()
00028 , map()
00029 {
00030 }
00031
00032 VariantMapArray_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , map(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef std::vector< ::nasa_r2_common_msgs::VariantMap_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::nasa_r2_common_msgs::VariantMap_<ContainerAllocator> >::other > _map_type;
00042 std::vector< ::nasa_r2_common_msgs::VariantMap_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::nasa_r2_common_msgs::VariantMap_<ContainerAllocator> >::other > map;
00043
00044
00045 typedef boost::shared_ptr< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::nasa_r2_common_msgs::VariantMapArray_<std::allocator<void> > VariantMapArray;
00050
00051 typedef boost::shared_ptr< ::nasa_r2_common_msgs::VariantMapArray> VariantMapArrayPtr;
00052 typedef boost::shared_ptr< ::nasa_r2_common_msgs::VariantMapArray const> VariantMapArrayConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "81c5b31cbd0a1ce333af5ea67766c271";
00074 }
00075
00076 static const char* value(const ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0x81c5b31cbd0a1ce3ULL;
00078 static const uint64_t static_value2 = 0x33af5ea67766c271ULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "nasa_r2_common_msgs/VariantMapArray";
00086 }
00087
00088 static const char* value(const ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "Header header\n\
00096 VariantMap[] map\n\
00097 \n\
00098 ================================================================================\n\
00099 MSG: std_msgs/Header\n\
00100 # Standard metadata for higher-level stamped data types.\n\
00101 # This is generally used to communicate timestamped data \n\
00102 # in a particular coordinate frame.\n\
00103 # \n\
00104 # sequence ID: consecutively increasing ID \n\
00105 uint32 seq\n\
00106 #Two-integer timestamp that is expressed as:\n\
00107 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00108 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00109 # time-handling sugar is provided by the client library\n\
00110 time stamp\n\
00111 #Frame this data is associated with\n\
00112 # 0: no frame\n\
00113 # 1: global frame\n\
00114 string frame_id\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: nasa_r2_common_msgs/VariantMap\n\
00118 string name\n\
00119 string message\n\
00120 ValueType[] value\n\
00121 string[] stringMap\n\
00122 uint16[] uint16Map\n\
00123 int16[] int16Map\n\
00124 uint32[] uint32Map\n\
00125 int32[] int32Map\n\
00126 float32[] float32Map\n\
00127 bool[] boolMap\n\
00128 \n\
00129 ================================================================================\n\
00130 MSG: nasa_r2_common_msgs/ValueType\n\
00131 string key\n\
00132 MappedType type\n\
00133 uint32 index\n\
00134 \n\
00135 ================================================================================\n\
00136 MSG: nasa_r2_common_msgs/MappedType\n\
00137 uint8 STRING = 0\n\
00138 uint8 UINT16 = 1\n\
00139 uint8 INT16 = 2\n\
00140 uint8 UINT32 = 3\n\
00141 uint8 INT32 = 4\n\
00142 uint8 FLOAT32 = 5\n\
00143 uint8 BOOL = 6\n\
00144 \n\
00145 uint8 type\n\
00146 \n\
00147 ";
00148 }
00149
00150 static const char* value(const ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> &) { return value(); }
00151 };
00152
00153 template<class ContainerAllocator> struct HasHeader< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> > : public TrueType {};
00154 template<class ContainerAllocator> struct HasHeader< const ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> > : public TrueType {};
00155 }
00156 }
00157
00158 namespace ros
00159 {
00160 namespace serialization
00161 {
00162
00163 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> >
00164 {
00165 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00166 {
00167 stream.next(m.header);
00168 stream.next(m.map);
00169 }
00170
00171 ROS_DECLARE_ALLINONE_SERIALIZER;
00172 };
00173 }
00174 }
00175
00176 namespace ros
00177 {
00178 namespace message_operations
00179 {
00180
00181 template<class ContainerAllocator>
00182 struct Printer< ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> >
00183 {
00184 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nasa_r2_common_msgs::VariantMapArray_<ContainerAllocator> & v)
00185 {
00186 s << indent << "header: ";
00187 s << std::endl;
00188 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00189 s << indent << "map[]" << std::endl;
00190 for (size_t i = 0; i < v.map.size(); ++i)
00191 {
00192 s << indent << " map[" << i << "]: ";
00193 s << std::endl;
00194 s << indent;
00195 Printer< ::nasa_r2_common_msgs::VariantMap_<ContainerAllocator> >::stream(s, indent + " ", v.map[i]);
00196 }
00197 }
00198 };
00199
00200
00201 }
00202 }
00203
00204 #endif // NASA_R2_COMMON_MSGS_MESSAGE_VARIANTMAPARRAY_H
00205