CommonHeader.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-applanix_driver/doc_stacks/2014-01-02_11-02-36.446834/applanix_driver/applanix_msgs/msg/CommonHeader.msg */
00002 #ifndef APPLANIX_MSGS_MESSAGE_COMMONHEADER_H
00003 #define APPLANIX_MSGS_MESSAGE_COMMONHEADER_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 applanix_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct CommonHeader_ {
00022   typedef CommonHeader_<ContainerAllocator> Type;
00023 
00024   CommonHeader_()
00025   : start()
00026   , id(0)
00027   , length(0)
00028   {
00029     start.assign(0);
00030   }
00031 
00032   CommonHeader_(const ContainerAllocator& _alloc)
00033   : start()
00034   , id(0)
00035   , length(0)
00036   {
00037     start.assign(0);
00038   }
00039 
00040   typedef boost::array<uint8_t, 4>  _start_type;
00041   boost::array<uint8_t, 4>  start;
00042 
00043   typedef uint16_t _id_type;
00044   uint16_t id;
00045 
00046   typedef uint16_t _length_type;
00047   uint16_t length;
00048 
00049   static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  START_GROUP;
00050   static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  START_MESSAGE;
00051 
00052   typedef boost::shared_ptr< ::applanix_msgs::CommonHeader_<ContainerAllocator> > Ptr;
00053   typedef boost::shared_ptr< ::applanix_msgs::CommonHeader_<ContainerAllocator>  const> ConstPtr;
00054   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00055 }; // struct CommonHeader
00056 typedef  ::applanix_msgs::CommonHeader_<std::allocator<void> > CommonHeader;
00057 
00058 typedef boost::shared_ptr< ::applanix_msgs::CommonHeader> CommonHeaderPtr;
00059 typedef boost::shared_ptr< ::applanix_msgs::CommonHeader const> CommonHeaderConstPtr;
00060 
00061 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  CommonHeader_<ContainerAllocator>::START_GROUP = "$GRP";
00062 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  CommonHeader_<ContainerAllocator>::START_MESSAGE = "$MSG";
00063 
00064 template<typename ContainerAllocator>
00065 std::ostream& operator<<(std::ostream& s, const  ::applanix_msgs::CommonHeader_<ContainerAllocator> & v)
00066 {
00067   ros::message_operations::Printer< ::applanix_msgs::CommonHeader_<ContainerAllocator> >::stream(s, "", v);
00068   return s;}
00069 
00070 } // namespace applanix_msgs
00071 
00072 namespace ros
00073 {
00074 namespace message_traits
00075 {
00076 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::CommonHeader_<ContainerAllocator> > : public TrueType {};
00077 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::CommonHeader_<ContainerAllocator>  const> : public TrueType {};
00078 template<class ContainerAllocator>
00079 struct MD5Sum< ::applanix_msgs::CommonHeader_<ContainerAllocator> > {
00080   static const char* value() 
00081   {
00082     return "cb573def7f5977ee910df3469d33c060";
00083   }
00084 
00085   static const char* value(const  ::applanix_msgs::CommonHeader_<ContainerAllocator> &) { return value(); } 
00086   static const uint64_t static_value1 = 0xcb573def7f5977eeULL;
00087   static const uint64_t static_value2 = 0x910df3469d33c060ULL;
00088 };
00089 
00090 template<class ContainerAllocator>
00091 struct DataType< ::applanix_msgs::CommonHeader_<ContainerAllocator> > {
00092   static const char* value() 
00093   {
00094     return "applanix_msgs/CommonHeader";
00095   }
00096 
00097   static const char* value(const  ::applanix_msgs::CommonHeader_<ContainerAllocator> &) { return value(); } 
00098 };
00099 
00100 template<class ContainerAllocator>
00101 struct Definition< ::applanix_msgs::CommonHeader_<ContainerAllocator> > {
00102   static const char* value() 
00103   {
00104     return "string START_GROUP=$GRP\n\
00105 string START_MESSAGE=$MSG\n\
00106 \n\
00107 uint8[4] start\n\
00108 uint16 id\n\
00109 uint16 length\n\
00110 \n\
00111 ";
00112   }
00113 
00114   static const char* value(const  ::applanix_msgs::CommonHeader_<ContainerAllocator> &) { return value(); } 
00115 };
00116 
00117 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::CommonHeader_<ContainerAllocator> > : public TrueType {};
00118 } // namespace message_traits
00119 } // namespace ros
00120 
00121 namespace ros
00122 {
00123 namespace serialization
00124 {
00125 
00126 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::CommonHeader_<ContainerAllocator> >
00127 {
00128   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00129   {
00130     stream.next(m.start);
00131     stream.next(m.id);
00132     stream.next(m.length);
00133   }
00134 
00135   ROS_DECLARE_ALLINONE_SERIALIZER;
00136 }; // struct CommonHeader_
00137 } // namespace serialization
00138 } // namespace ros
00139 
00140 namespace ros
00141 {
00142 namespace message_operations
00143 {
00144 
00145 template<class ContainerAllocator>
00146 struct Printer< ::applanix_msgs::CommonHeader_<ContainerAllocator> >
00147 {
00148   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::applanix_msgs::CommonHeader_<ContainerAllocator> & v) 
00149   {
00150     s << indent << "start[]" << std::endl;
00151     for (size_t i = 0; i < v.start.size(); ++i)
00152     {
00153       s << indent << "  start[" << i << "]: ";
00154       Printer<uint8_t>::stream(s, indent + "  ", v.start[i]);
00155     }
00156     s << indent << "id: ";
00157     Printer<uint16_t>::stream(s, indent + "  ", v.id);
00158     s << indent << "length: ";
00159     Printer<uint16_t>::stream(s, indent + "  ", v.length);
00160   }
00161 };
00162 
00163 
00164 } // namespace message_operations
00165 } // namespace ros
00166 
00167 #endif // APPLANIX_MSGS_MESSAGE_COMMONHEADER_H
00168 


applanix_msgs
Author(s): Mike Purvis
autogenerated on Thu Jan 2 2014 11:04:51