TypeDef.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-rosbridge_suite/doc_stacks/2014-01-02_11-51-48.209505/rosbridge_suite/rosapi/msg/TypeDef.msg */
00002 #ifndef ROSAPI_MESSAGE_TYPEDEF_H
00003 #define ROSAPI_MESSAGE_TYPEDEF_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 rosapi
00019 {
00020 template <class ContainerAllocator>
00021 struct TypeDef_ {
00022   typedef TypeDef_<ContainerAllocator> Type;
00023 
00024   TypeDef_()
00025   : type()
00026   , fieldnames()
00027   , fieldtypes()
00028   , fieldarraylen()
00029   , examples()
00030   {
00031   }
00032 
00033   TypeDef_(const ContainerAllocator& _alloc)
00034   : type(_alloc)
00035   , fieldnames(_alloc)
00036   , fieldtypes(_alloc)
00037   , fieldarraylen(_alloc)
00038   , examples(_alloc)
00039   {
00040   }
00041 
00042   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _type_type;
00043   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  type;
00044 
00045   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 >  _fieldnames_type;
00046   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 >  fieldnames;
00047 
00048   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 >  _fieldtypes_type;
00049   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 >  fieldtypes;
00050 
00051   typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _fieldarraylen_type;
00052   std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  fieldarraylen;
00053 
00054   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 >  _examples_type;
00055   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 >  examples;
00056 
00057 
00058   typedef boost::shared_ptr< ::rosapi::TypeDef_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::rosapi::TypeDef_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct TypeDef
00062 typedef  ::rosapi::TypeDef_<std::allocator<void> > TypeDef;
00063 
00064 typedef boost::shared_ptr< ::rosapi::TypeDef> TypeDefPtr;
00065 typedef boost::shared_ptr< ::rosapi::TypeDef const> TypeDefConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::rosapi::TypeDef_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::rosapi::TypeDef_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace rosapi
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::rosapi::TypeDef_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::rosapi::TypeDef_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::rosapi::TypeDef_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "bd8529b0edb168fde8dd58032743f1f7";
00087   }
00088 
00089   static const char* value(const  ::rosapi::TypeDef_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0xbd8529b0edb168fdULL;
00091   static const uint64_t static_value2 = 0xe8dd58032743f1f7ULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::rosapi::TypeDef_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "rosapi/TypeDef";
00099   }
00100 
00101   static const char* value(const  ::rosapi::TypeDef_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::rosapi::TypeDef_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "string type\n\
00109 string[] fieldnames\n\
00110 string[] fieldtypes\n\
00111 int32[] fieldarraylen\n\
00112 string[] examples\n\
00113 \n\
00114 ";
00115   }
00116 
00117   static const char* value(const  ::rosapi::TypeDef_<ContainerAllocator> &) { return value(); } 
00118 };
00119 
00120 } // namespace message_traits
00121 } // namespace ros
00122 
00123 namespace ros
00124 {
00125 namespace serialization
00126 {
00127 
00128 template<class ContainerAllocator> struct Serializer< ::rosapi::TypeDef_<ContainerAllocator> >
00129 {
00130   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00131   {
00132     stream.next(m.type);
00133     stream.next(m.fieldnames);
00134     stream.next(m.fieldtypes);
00135     stream.next(m.fieldarraylen);
00136     stream.next(m.examples);
00137   }
00138 
00139   ROS_DECLARE_ALLINONE_SERIALIZER;
00140 }; // struct TypeDef_
00141 } // namespace serialization
00142 } // namespace ros
00143 
00144 namespace ros
00145 {
00146 namespace message_operations
00147 {
00148 
00149 template<class ContainerAllocator>
00150 struct Printer< ::rosapi::TypeDef_<ContainerAllocator> >
00151 {
00152   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::rosapi::TypeDef_<ContainerAllocator> & v) 
00153   {
00154     s << indent << "type: ";
00155     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.type);
00156     s << indent << "fieldnames[]" << std::endl;
00157     for (size_t i = 0; i < v.fieldnames.size(); ++i)
00158     {
00159       s << indent << "  fieldnames[" << i << "]: ";
00160       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.fieldnames[i]);
00161     }
00162     s << indent << "fieldtypes[]" << std::endl;
00163     for (size_t i = 0; i < v.fieldtypes.size(); ++i)
00164     {
00165       s << indent << "  fieldtypes[" << i << "]: ";
00166       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.fieldtypes[i]);
00167     }
00168     s << indent << "fieldarraylen[]" << std::endl;
00169     for (size_t i = 0; i < v.fieldarraylen.size(); ++i)
00170     {
00171       s << indent << "  fieldarraylen[" << i << "]: ";
00172       Printer<int32_t>::stream(s, indent + "  ", v.fieldarraylen[i]);
00173     }
00174     s << indent << "examples[]" << std::endl;
00175     for (size_t i = 0; i < v.examples.size(); ++i)
00176     {
00177       s << indent << "  examples[" << i << "]: ";
00178       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.examples[i]);
00179     }
00180   }
00181 };
00182 
00183 
00184 } // namespace message_operations
00185 } // namespace ros
00186 
00187 #endif // ROSAPI_MESSAGE_TYPEDEF_H
00188 


rosapi
Author(s): Jon
autogenerated on Thu Jan 2 2014 11:53:39