ValueType.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-nasa_r2_common/doc_stacks/2014-10-06_02-39-31.575241/nasa_r2_common/nasa_r2_common_msgs/msg/ValueType.msg */
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_VALUETYPE_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_VALUETYPE_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 "nasa_r2_common_msgs/MappedType.h"
00018 
00019 namespace nasa_r2_common_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct ValueType_ {
00023   typedef ValueType_<ContainerAllocator> Type;
00024 
00025   ValueType_()
00026   : key()
00027   , type()
00028   , index(0)
00029   {
00030   }
00031 
00032   ValueType_(const ContainerAllocator& _alloc)
00033   : key(_alloc)
00034   , type(_alloc)
00035   , index(0)
00036   {
00037   }
00038 
00039   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _key_type;
00040   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  key;
00041 
00042   typedef  ::nasa_r2_common_msgs::MappedType_<ContainerAllocator>  _type_type;
00043    ::nasa_r2_common_msgs::MappedType_<ContainerAllocator>  type;
00044 
00045   typedef uint32_t _index_type;
00046   uint32_t index;
00047 
00048 
00049   typedef boost::shared_ptr< ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> > Ptr;
00050   typedef boost::shared_ptr< ::nasa_r2_common_msgs::ValueType_<ContainerAllocator>  const> ConstPtr;
00051   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 }; // struct ValueType
00053 typedef  ::nasa_r2_common_msgs::ValueType_<std::allocator<void> > ValueType;
00054 
00055 typedef boost::shared_ptr< ::nasa_r2_common_msgs::ValueType> ValueTypePtr;
00056 typedef boost::shared_ptr< ::nasa_r2_common_msgs::ValueType const> ValueTypeConstPtr;
00057 
00058 
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const  ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> & v)
00061 {
00062   ros::message_operations::Printer< ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> >::stream(s, "", v);
00063   return s;}
00064 
00065 } // namespace nasa_r2_common_msgs
00066 
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::ValueType_<ContainerAllocator>  const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> > {
00075   static const char* value() 
00076   {
00077     return "77bd6714cc0b98aab863f096be2d2adc";
00078   }
00079 
00080   static const char* value(const  ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> &) { return value(); } 
00081   static const uint64_t static_value1 = 0x77bd6714cc0b98aaULL;
00082   static const uint64_t static_value2 = 0xb863f096be2d2adcULL;
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct DataType< ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "nasa_r2_common_msgs/ValueType";
00090   }
00091 
00092   static const char* value(const  ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> &) { return value(); } 
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct Definition< ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "string     key\n\
00100 MappedType type\n\
00101 uint32     index\n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: nasa_r2_common_msgs/MappedType\n\
00105 uint8 STRING  = 0\n\
00106 uint8 UINT16  = 1\n\
00107 uint8 INT16   = 2\n\
00108 uint8 UINT32  = 3\n\
00109 uint8 INT32   = 4\n\
00110 uint8 FLOAT32 = 5\n\
00111 uint8 BOOL    = 6\n\
00112 \n\
00113 uint8 type\n\
00114 \n\
00115 ";
00116   }
00117 
00118   static const char* value(const  ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> &) { return value(); } 
00119 };
00120 
00121 } // namespace message_traits
00122 } // namespace ros
00123 
00124 namespace ros
00125 {
00126 namespace serialization
00127 {
00128 
00129 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> >
00130 {
00131   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00132   {
00133     stream.next(m.key);
00134     stream.next(m.type);
00135     stream.next(m.index);
00136   }
00137 
00138   ROS_DECLARE_ALLINONE_SERIALIZER;
00139 }; // struct ValueType_
00140 } // namespace serialization
00141 } // namespace ros
00142 
00143 namespace ros
00144 {
00145 namespace message_operations
00146 {
00147 
00148 template<class ContainerAllocator>
00149 struct Printer< ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> >
00150 {
00151   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::nasa_r2_common_msgs::ValueType_<ContainerAllocator> & v) 
00152   {
00153     s << indent << "key: ";
00154     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.key);
00155     s << indent << "type: ";
00156 s << std::endl;
00157     Printer< ::nasa_r2_common_msgs::MappedType_<ContainerAllocator> >::stream(s, indent + "  ", v.type);
00158     s << indent << "index: ";
00159     Printer<uint32_t>::stream(s, indent + "  ", v.index);
00160   }
00161 };
00162 
00163 
00164 } // namespace message_operations
00165 } // namespace ros
00166 
00167 #endif // NASA_R2_COMMON_MSGS_MESSAGE_VALUETYPE_H
00168 


nasa_r2_common_msgs
Author(s): Paul Dinh. Maintained by Jennifer Turner
autogenerated on Mon Oct 6 2014 02:42:34