Packet.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-image_transport_plugins/doc_stacks/2013-12-28_17-04-29.655737/image_transport_plugins/theora_image_transport/msg/Packet.msg */
00002 #ifndef THEORA_IMAGE_TRANSPORT_MESSAGE_PACKET_H
00003 #define THEORA_IMAGE_TRANSPORT_MESSAGE_PACKET_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 "std_msgs/Header.h"
00018 
00019 namespace theora_image_transport
00020 {
00021 template <class ContainerAllocator>
00022 struct Packet_ {
00023   typedef Packet_<ContainerAllocator> Type;
00024 
00025   Packet_()
00026   : header()
00027   , data()
00028   , b_o_s(0)
00029   , e_o_s(0)
00030   , granulepos(0)
00031   , packetno(0)
00032   {
00033   }
00034 
00035   Packet_(const ContainerAllocator& _alloc)
00036   : header(_alloc)
00037   , data(_alloc)
00038   , b_o_s(0)
00039   , e_o_s(0)
00040   , granulepos(0)
00041   , packetno(0)
00042   {
00043   }
00044 
00045   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00046    ::std_msgs::Header_<ContainerAllocator>  header;
00047 
00048   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _data_type;
00049   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  data;
00050 
00051   typedef int32_t _b_o_s_type;
00052   int32_t b_o_s;
00053 
00054   typedef int32_t _e_o_s_type;
00055   int32_t e_o_s;
00056 
00057   typedef int64_t _granulepos_type;
00058   int64_t granulepos;
00059 
00060   typedef int64_t _packetno_type;
00061   int64_t packetno;
00062 
00063 
00064   typedef boost::shared_ptr< ::theora_image_transport::Packet_<ContainerAllocator> > Ptr;
00065   typedef boost::shared_ptr< ::theora_image_transport::Packet_<ContainerAllocator>  const> ConstPtr;
00066   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00067 }; // struct Packet
00068 typedef  ::theora_image_transport::Packet_<std::allocator<void> > Packet;
00069 
00070 typedef boost::shared_ptr< ::theora_image_transport::Packet> PacketPtr;
00071 typedef boost::shared_ptr< ::theora_image_transport::Packet const> PacketConstPtr;
00072 
00073 
00074 template<typename ContainerAllocator>
00075 std::ostream& operator<<(std::ostream& s, const  ::theora_image_transport::Packet_<ContainerAllocator> & v)
00076 {
00077   ros::message_operations::Printer< ::theora_image_transport::Packet_<ContainerAllocator> >::stream(s, "", v);
00078   return s;}
00079 
00080 } // namespace theora_image_transport
00081 
00082 namespace ros
00083 {
00084 namespace message_traits
00085 {
00086 template<class ContainerAllocator> struct IsMessage< ::theora_image_transport::Packet_<ContainerAllocator> > : public TrueType {};
00087 template<class ContainerAllocator> struct IsMessage< ::theora_image_transport::Packet_<ContainerAllocator>  const> : public TrueType {};
00088 template<class ContainerAllocator>
00089 struct MD5Sum< ::theora_image_transport::Packet_<ContainerAllocator> > {
00090   static const char* value() 
00091   {
00092     return "33ac4e14a7cff32e7e0d65f18bb410f3";
00093   }
00094 
00095   static const char* value(const  ::theora_image_transport::Packet_<ContainerAllocator> &) { return value(); } 
00096   static const uint64_t static_value1 = 0x33ac4e14a7cff32eULL;
00097   static const uint64_t static_value2 = 0x7e0d65f18bb410f3ULL;
00098 };
00099 
00100 template<class ContainerAllocator>
00101 struct DataType< ::theora_image_transport::Packet_<ContainerAllocator> > {
00102   static const char* value() 
00103   {
00104     return "theora_image_transport/Packet";
00105   }
00106 
00107   static const char* value(const  ::theora_image_transport::Packet_<ContainerAllocator> &) { return value(); } 
00108 };
00109 
00110 template<class ContainerAllocator>
00111 struct Definition< ::theora_image_transport::Packet_<ContainerAllocator> > {
00112   static const char* value() 
00113   {
00114     return "# ROS message adaptation of the ogg_packet struct from libogg,\n\
00115 # see http://www.xiph.org/ogg/doc/libogg/ogg_packet.html.\n\
00116 \n\
00117 Header header     # Original sensor_msgs/Image header\n\
00118 uint8[] data      # Raw Theora packet data (combines packet and bytes fields from ogg_packet)\n\
00119 int32 b_o_s       # Flag indicating whether this packet begins a logical bitstream\n\
00120 int32 e_o_s       # Flag indicating whether this packet ends a bitstream\n\
00121 int64 granulepos  # A number indicating the position of this packet in the decoded data\n\
00122 int64 packetno    # Sequential number of this packet in the ogg bitstream\n\
00123 \n\
00124 ================================================================================\n\
00125 MSG: std_msgs/Header\n\
00126 # Standard metadata for higher-level stamped data types.\n\
00127 # This is generally used to communicate timestamped data \n\
00128 # in a particular coordinate frame.\n\
00129 # \n\
00130 # sequence ID: consecutively increasing ID \n\
00131 uint32 seq\n\
00132 #Two-integer timestamp that is expressed as:\n\
00133 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00134 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00135 # time-handling sugar is provided by the client library\n\
00136 time stamp\n\
00137 #Frame this data is associated with\n\
00138 # 0: no frame\n\
00139 # 1: global frame\n\
00140 string frame_id\n\
00141 \n\
00142 ";
00143   }
00144 
00145   static const char* value(const  ::theora_image_transport::Packet_<ContainerAllocator> &) { return value(); } 
00146 };
00147 
00148 template<class ContainerAllocator> struct HasHeader< ::theora_image_transport::Packet_<ContainerAllocator> > : public TrueType {};
00149 template<class ContainerAllocator> struct HasHeader< const ::theora_image_transport::Packet_<ContainerAllocator> > : public TrueType {};
00150 } // namespace message_traits
00151 } // namespace ros
00152 
00153 namespace ros
00154 {
00155 namespace serialization
00156 {
00157 
00158 template<class ContainerAllocator> struct Serializer< ::theora_image_transport::Packet_<ContainerAllocator> >
00159 {
00160   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00161   {
00162     stream.next(m.header);
00163     stream.next(m.data);
00164     stream.next(m.b_o_s);
00165     stream.next(m.e_o_s);
00166     stream.next(m.granulepos);
00167     stream.next(m.packetno);
00168   }
00169 
00170   ROS_DECLARE_ALLINONE_SERIALIZER;
00171 }; // struct Packet_
00172 } // namespace serialization
00173 } // namespace ros
00174 
00175 namespace ros
00176 {
00177 namespace message_operations
00178 {
00179 
00180 template<class ContainerAllocator>
00181 struct Printer< ::theora_image_transport::Packet_<ContainerAllocator> >
00182 {
00183   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::theora_image_transport::Packet_<ContainerAllocator> & v) 
00184   {
00185     s << indent << "header: ";
00186 s << std::endl;
00187     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00188     s << indent << "data[]" << std::endl;
00189     for (size_t i = 0; i < v.data.size(); ++i)
00190     {
00191       s << indent << "  data[" << i << "]: ";
00192       Printer<uint8_t>::stream(s, indent + "  ", v.data[i]);
00193     }
00194     s << indent << "b_o_s: ";
00195     Printer<int32_t>::stream(s, indent + "  ", v.b_o_s);
00196     s << indent << "e_o_s: ";
00197     Printer<int32_t>::stream(s, indent + "  ", v.e_o_s);
00198     s << indent << "granulepos: ";
00199     Printer<int64_t>::stream(s, indent + "  ", v.granulepos);
00200     s << indent << "packetno: ";
00201     Printer<int64_t>::stream(s, indent + "  ", v.packetno);
00202   }
00203 };
00204 
00205 
00206 } // namespace message_operations
00207 } // namespace ros
00208 
00209 #endif // THEORA_IMAGE_TRANSPORT_MESSAGE_PACKET_H
00210 


theora_image_transport
Author(s): Patrick Mihelich, Ethan Dreyfuss
autogenerated on Sat Dec 28 2013 17:06:15