MultipleShort.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/MultipleShort.msg */
00002 #ifndef SOCROB_MULTICAST_MESSAGE_MULTIPLESHORT_H
00003 #define SOCROB_MULTICAST_MESSAGE_MULTIPLESHORT_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/Short.h"
00018 
00019 namespace socrob_multicast
00020 {
00021 template <class ContainerAllocator>
00022 struct MultipleShort_ {
00023   typedef MultipleShort_<ContainerAllocator> Type;
00024 
00025   MultipleShort_()
00026   : sender_sid(0)
00027   , questions()
00028   {
00029   }
00030 
00031   MultipleShort_(const ContainerAllocator& _alloc)
00032   : sender_sid(0)
00033   , questions(_alloc)
00034   {
00035   }
00036 
00037   typedef uint8_t _sender_sid_type;
00038   uint8_t sender_sid;
00039 
00040   typedef std::vector< ::socrob_multicast::Short_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::socrob_multicast::Short_<ContainerAllocator> >::other >  _questions_type;
00041   std::vector< ::socrob_multicast::Short_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::socrob_multicast::Short_<ContainerAllocator> >::other >  questions;
00042 
00043 
00044   typedef boost::shared_ptr< ::socrob_multicast::MultipleShort_<ContainerAllocator> > Ptr;
00045   typedef boost::shared_ptr< ::socrob_multicast::MultipleShort_<ContainerAllocator>  const> ConstPtr;
00046   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 }; // struct MultipleShort
00048 typedef  ::socrob_multicast::MultipleShort_<std::allocator<void> > MultipleShort;
00049 
00050 typedef boost::shared_ptr< ::socrob_multicast::MultipleShort> MultipleShortPtr;
00051 typedef boost::shared_ptr< ::socrob_multicast::MultipleShort const> MultipleShortConstPtr;
00052 
00053 
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const  ::socrob_multicast::MultipleShort_<ContainerAllocator> & v)
00056 {
00057   ros::message_operations::Printer< ::socrob_multicast::MultipleShort_<ContainerAllocator> >::stream(s, "", v);
00058   return s;}
00059 
00060 } // namespace socrob_multicast
00061 
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::socrob_multicast::MultipleShort_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::socrob_multicast::MultipleShort_<ContainerAllocator>  const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::socrob_multicast::MultipleShort_<ContainerAllocator> > {
00070   static const char* value() 
00071   {
00072     return "d32a0575d99202098aadf12a8946e863";
00073   }
00074 
00075   static const char* value(const  ::socrob_multicast::MultipleShort_<ContainerAllocator> &) { return value(); } 
00076   static const uint64_t static_value1 = 0xd32a0575d9920209ULL;
00077   static const uint64_t static_value2 = 0x8aadf12a8946e863ULL;
00078 };
00079 
00080 template<class ContainerAllocator>
00081 struct DataType< ::socrob_multicast::MultipleShort_<ContainerAllocator> > {
00082   static const char* value() 
00083   {
00084     return "socrob_multicast/MultipleShort";
00085   }
00086 
00087   static const char* value(const  ::socrob_multicast::MultipleShort_<ContainerAllocator> &) { return value(); } 
00088 };
00089 
00090 template<class ContainerAllocator>
00091 struct Definition< ::socrob_multicast::MultipleShort_<ContainerAllocator> > {
00092   static const char* value() 
00093   {
00094     return "uint8 sender_sid\n\
00095 \n\
00096 Short[] questions\n\
00097 \n\
00098 ================================================================================\n\
00099 MSG: socrob_multicast/Short\n\
00100 uint8 starter_id\n\
00101 uint32 qid\n\
00102 \n\
00103 uint8[] required\n\
00104 \n\
00105 # required.size() == 0  -->  Empty question\n\
00106 uint8[] question\n\
00107 \n\
00108 Answer[] answers\n\
00109 \n\
00110 ================================================================================\n\
00111 MSG: socrob_multicast/Answer\n\
00112 uint8 sid\n\
00113 uint8[] data\n\
00114 \n\
00115 ";
00116   }
00117 
00118   static const char* value(const  ::socrob_multicast::MultipleShort_<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< ::socrob_multicast::MultipleShort_<ContainerAllocator> >
00130 {
00131   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00132   {
00133     stream.next(m.sender_sid);
00134     stream.next(m.questions);
00135   }
00136 
00137   ROS_DECLARE_ALLINONE_SERIALIZER;
00138 }; // struct MultipleShort_
00139 } // namespace serialization
00140 } // namespace ros
00141 
00142 namespace ros
00143 {
00144 namespace message_operations
00145 {
00146 
00147 template<class ContainerAllocator>
00148 struct Printer< ::socrob_multicast::MultipleShort_<ContainerAllocator> >
00149 {
00150   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::socrob_multicast::MultipleShort_<ContainerAllocator> & v) 
00151   {
00152     s << indent << "sender_sid: ";
00153     Printer<uint8_t>::stream(s, indent + "  ", v.sender_sid);
00154     s << indent << "questions[]" << std::endl;
00155     for (size_t i = 0; i < v.questions.size(); ++i)
00156     {
00157       s << indent << "  questions[" << i << "]: ";
00158       s << std::endl;
00159       s << indent;
00160       Printer< ::socrob_multicast::Short_<ContainerAllocator> >::stream(s, indent + "    ", v.questions[i]);
00161     }
00162   }
00163 };
00164 
00165 
00166 } // namespace message_operations
00167 } // namespace ros
00168 
00169 #endif // SOCROB_MULTICAST_MESSAGE_MULTIPLESHORT_H
00170 


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