Short.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-socrob-ros-pkg/doc_stacks/2014-01-06_11-46-09.555949/socrob-ros-pkg/soccer-msl/socrob_multicast/msg/Short.msg */
00002 #ifndef SOCROB_MULTICAST_MESSAGE_SHORT_H
00003 #define SOCROB_MULTICAST_MESSAGE_SHORT_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 "socrob_multicast/Answer.h"
00018 
00019 namespace socrob_multicast
00020 {
00021 template <class ContainerAllocator>
00022 struct Short_ {
00023   typedef Short_<ContainerAllocator> Type;
00024 
00025   Short_()
00026   : starter_id(0)
00027   , qid(0)
00028   , required()
00029   , question()
00030   , answers()
00031   {
00032   }
00033 
00034   Short_(const ContainerAllocator& _alloc)
00035   : starter_id(0)
00036   , qid(0)
00037   , required(_alloc)
00038   , question(_alloc)
00039   , answers(_alloc)
00040   {
00041   }
00042 
00043   typedef uint8_t _starter_id_type;
00044   uint8_t starter_id;
00045 
00046   typedef uint32_t _qid_type;
00047   uint32_t qid;
00048 
00049   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _required_type;
00050   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  required;
00051 
00052   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _question_type;
00053   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  question;
00054 
00055   typedef std::vector< ::socrob_multicast::Answer_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::socrob_multicast::Answer_<ContainerAllocator> >::other >  _answers_type;
00056   std::vector< ::socrob_multicast::Answer_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::socrob_multicast::Answer_<ContainerAllocator> >::other >  answers;
00057 
00058 
00059   typedef boost::shared_ptr< ::socrob_multicast::Short_<ContainerAllocator> > Ptr;
00060   typedef boost::shared_ptr< ::socrob_multicast::Short_<ContainerAllocator>  const> ConstPtr;
00061   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 }; // struct Short
00063 typedef  ::socrob_multicast::Short_<std::allocator<void> > Short;
00064 
00065 typedef boost::shared_ptr< ::socrob_multicast::Short> ShortPtr;
00066 typedef boost::shared_ptr< ::socrob_multicast::Short const> ShortConstPtr;
00067 
00068 
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const  ::socrob_multicast::Short_<ContainerAllocator> & v)
00071 {
00072   ros::message_operations::Printer< ::socrob_multicast::Short_<ContainerAllocator> >::stream(s, "", v);
00073   return s;}
00074 
00075 } // namespace socrob_multicast
00076 
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::socrob_multicast::Short_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::socrob_multicast::Short_<ContainerAllocator>  const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::socrob_multicast::Short_<ContainerAllocator> > {
00085   static const char* value() 
00086   {
00087     return "4e6c9f74fa8048fb6640f9a498c8c997";
00088   }
00089 
00090   static const char* value(const  ::socrob_multicast::Short_<ContainerAllocator> &) { return value(); } 
00091   static const uint64_t static_value1 = 0x4e6c9f74fa8048fbULL;
00092   static const uint64_t static_value2 = 0x6640f9a498c8c997ULL;
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct DataType< ::socrob_multicast::Short_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "socrob_multicast/Short";
00100   }
00101 
00102   static const char* value(const  ::socrob_multicast::Short_<ContainerAllocator> &) { return value(); } 
00103 };
00104 
00105 template<class ContainerAllocator>
00106 struct Definition< ::socrob_multicast::Short_<ContainerAllocator> > {
00107   static const char* value() 
00108   {
00109     return "uint8 starter_id\n\
00110 uint32 qid\n\
00111 \n\
00112 uint8[] required\n\
00113 \n\
00114 # required.size() == 0  -->  Empty question\n\
00115 uint8[] question\n\
00116 \n\
00117 Answer[] answers\n\
00118 \n\
00119 ================================================================================\n\
00120 MSG: socrob_multicast/Answer\n\
00121 uint8 sid\n\
00122 uint8[] data\n\
00123 \n\
00124 ";
00125   }
00126 
00127   static const char* value(const  ::socrob_multicast::Short_<ContainerAllocator> &) { return value(); } 
00128 };
00129 
00130 } // namespace message_traits
00131 } // namespace ros
00132 
00133 namespace ros
00134 {
00135 namespace serialization
00136 {
00137 
00138 template<class ContainerAllocator> struct Serializer< ::socrob_multicast::Short_<ContainerAllocator> >
00139 {
00140   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00141   {
00142     stream.next(m.starter_id);
00143     stream.next(m.qid);
00144     stream.next(m.required);
00145     stream.next(m.question);
00146     stream.next(m.answers);
00147   }
00148 
00149   ROS_DECLARE_ALLINONE_SERIALIZER;
00150 }; // struct Short_
00151 } // namespace serialization
00152 } // namespace ros
00153 
00154 namespace ros
00155 {
00156 namespace message_operations
00157 {
00158 
00159 template<class ContainerAllocator>
00160 struct Printer< ::socrob_multicast::Short_<ContainerAllocator> >
00161 {
00162   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::socrob_multicast::Short_<ContainerAllocator> & v) 
00163   {
00164     s << indent << "starter_id: ";
00165     Printer<uint8_t>::stream(s, indent + "  ", v.starter_id);
00166     s << indent << "qid: ";
00167     Printer<uint32_t>::stream(s, indent + "  ", v.qid);
00168     s << indent << "required[]" << std::endl;
00169     for (size_t i = 0; i < v.required.size(); ++i)
00170     {
00171       s << indent << "  required[" << i << "]: ";
00172       Printer<uint8_t>::stream(s, indent + "  ", v.required[i]);
00173     }
00174     s << indent << "question[]" << std::endl;
00175     for (size_t i = 0; i < v.question.size(); ++i)
00176     {
00177       s << indent << "  question[" << i << "]: ";
00178       Printer<uint8_t>::stream(s, indent + "  ", v.question[i]);
00179     }
00180     s << indent << "answers[]" << std::endl;
00181     for (size_t i = 0; i < v.answers.size(); ++i)
00182     {
00183       s << indent << "  answers[" << i << "]: ";
00184       s << std::endl;
00185       s << indent;
00186       Printer< ::socrob_multicast::Answer_<ContainerAllocator> >::stream(s, indent + "    ", v.answers[i]);
00187     }
00188   }
00189 };
00190 
00191 
00192 } // namespace message_operations
00193 } // namespace ros
00194 
00195 #endif // SOCROB_MULTICAST_MESSAGE_SHORT_H
00196 


socrob_multicast
Author(s): Joao Reis/jreis@isr.ist.utl.pt
autogenerated on Mon Jan 6 2014 11:47:49