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


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