Go to the documentation of this file.00001
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_MAPPEDTYPE_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_MAPPEDTYPE_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 nasa_r2_common_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct MappedType_ {
00022 typedef MappedType_<ContainerAllocator> Type;
00023
00024 MappedType_()
00025 : type(0)
00026 {
00027 }
00028
00029 MappedType_(const ContainerAllocator& _alloc)
00030 : type(0)
00031 {
00032 }
00033
00034 typedef uint8_t _type_type;
00035 uint8_t type;
00036
00037 enum { STRING = 0 };
00038 enum { UINT16 = 1 };
00039 enum { INT16 = 2 };
00040 enum { UINT32 = 3 };
00041 enum { INT32 = 4 };
00042 enum { FLOAT32 = 5 };
00043 enum { BOOL = 6 };
00044
00045 typedef boost::shared_ptr< ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::nasa_r2_common_msgs::MappedType_<std::allocator<void> > MappedType;
00050
00051 typedef boost::shared_ptr< ::nasa_r2_common_msgs::MappedType> MappedTypePtr;
00052 typedef boost::shared_ptr< ::nasa_r2_common_msgs::MappedType const> MappedTypeConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::nasa_r2_common_msgs::MappedType_<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::MappedType_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "f61664a4dc14b6b365fb43df66f4679e";
00074 }
00075
00076 static const char* value(const ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0xf61664a4dc14b6b3ULL;
00078 static const uint64_t static_value2 = 0x65fb43df66f4679eULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "nasa_r2_common_msgs/MappedType";
00086 }
00087
00088 static const char* value(const ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "uint8 STRING = 0\n\
00096 uint8 UINT16 = 1\n\
00097 uint8 INT16 = 2\n\
00098 uint8 UINT32 = 3\n\
00099 uint8 INT32 = 4\n\
00100 uint8 FLOAT32 = 5\n\
00101 uint8 BOOL = 6\n\
00102 \n\
00103 uint8 type\n\
00104 \n\
00105 ";
00106 }
00107
00108 static const char* value(const ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> &) { return value(); }
00109 };
00110
00111 template<class ContainerAllocator> struct IsFixedSize< ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> > : public TrueType {};
00112 }
00113 }
00114
00115 namespace ros
00116 {
00117 namespace serialization
00118 {
00119
00120 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> >
00121 {
00122 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00123 {
00124 stream.next(m.type);
00125 }
00126
00127 ROS_DECLARE_ALLINONE_SERIALIZER;
00128 };
00129 }
00130 }
00131
00132 namespace ros
00133 {
00134 namespace message_operations
00135 {
00136
00137 template<class ContainerAllocator>
00138 struct Printer< ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> >
00139 {
00140 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> & v)
00141 {
00142 s << indent << "type: ";
00143 Printer<uint8_t>::stream(s, indent + " ", v.type);
00144 }
00145 };
00146
00147
00148 }
00149 }
00150
00151 #endif // NASA_R2_COMMON_MSGS_MESSAGE_MAPPEDTYPE_H
00152