Log.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-rosserial/doc_stacks/2013-12-06_20-33-42.647564/rosserial/rosserial_msgs/msg/Log.msg */
00002 #ifndef ROSSERIAL_MSGS_MESSAGE_LOG_H
00003 #define ROSSERIAL_MSGS_MESSAGE_LOG_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 rosserial_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct Log_ {
00022   typedef Log_<ContainerAllocator> Type;
00023 
00024   Log_()
00025   : level(0)
00026   , msg()
00027   {
00028   }
00029 
00030   Log_(const ContainerAllocator& _alloc)
00031   : level(0)
00032   , msg(_alloc)
00033   {
00034   }
00035 
00036   typedef uint8_t _level_type;
00037   uint8_t level;
00038 
00039   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _msg_type;
00040   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  msg;
00041 
00042   enum { DEBUG = 0 };
00043   enum { INFO = 1 };
00044   enum { WARN = 2 };
00045   enum { ERROR = 3 };
00046   enum { FATAL = 4 };
00047 
00048   typedef boost::shared_ptr< ::rosserial_msgs::Log_<ContainerAllocator> > Ptr;
00049   typedef boost::shared_ptr< ::rosserial_msgs::Log_<ContainerAllocator>  const> ConstPtr;
00050   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 }; // struct Log
00052 typedef  ::rosserial_msgs::Log_<std::allocator<void> > Log;
00053 
00054 typedef boost::shared_ptr< ::rosserial_msgs::Log> LogPtr;
00055 typedef boost::shared_ptr< ::rosserial_msgs::Log const> LogConstPtr;
00056 
00057 
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const  ::rosserial_msgs::Log_<ContainerAllocator> & v)
00060 {
00061   ros::message_operations::Printer< ::rosserial_msgs::Log_<ContainerAllocator> >::stream(s, "", v);
00062   return s;}
00063 
00064 } // namespace rosserial_msgs
00065 
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::rosserial_msgs::Log_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::rosserial_msgs::Log_<ContainerAllocator>  const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::rosserial_msgs::Log_<ContainerAllocator> > {
00074   static const char* value() 
00075   {
00076     return "7170d5aec999754ba0d9f762bf49b913";
00077   }
00078 
00079   static const char* value(const  ::rosserial_msgs::Log_<ContainerAllocator> &) { return value(); } 
00080   static const uint64_t static_value1 = 0x7170d5aec999754bULL;
00081   static const uint64_t static_value2 = 0xa0d9f762bf49b913ULL;
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct DataType< ::rosserial_msgs::Log_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "rosserial_msgs/Log";
00089   }
00090 
00091   static const char* value(const  ::rosserial_msgs::Log_<ContainerAllocator> &) { return value(); } 
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct Definition< ::rosserial_msgs::Log_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "\n\
00099 #ROS Logging Levels\n\
00100 uint8 DEBUG=0\n\
00101 uint8 INFO=1\n\
00102 uint8 WARN=2\n\
00103 uint8 ERROR=3\n\
00104 uint8 FATAL=4\n\
00105 \n\
00106 uint8 level\n\
00107 string msg\n\
00108 \n\
00109 ";
00110   }
00111 
00112   static const char* value(const  ::rosserial_msgs::Log_<ContainerAllocator> &) { return value(); } 
00113 };
00114 
00115 } // namespace message_traits
00116 } // namespace ros
00117 
00118 namespace ros
00119 {
00120 namespace serialization
00121 {
00122 
00123 template<class ContainerAllocator> struct Serializer< ::rosserial_msgs::Log_<ContainerAllocator> >
00124 {
00125   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00126   {
00127     stream.next(m.level);
00128     stream.next(m.msg);
00129   }
00130 
00131   ROS_DECLARE_ALLINONE_SERIALIZER;
00132 }; // struct Log_
00133 } // namespace serialization
00134 } // namespace ros
00135 
00136 namespace ros
00137 {
00138 namespace message_operations
00139 {
00140 
00141 template<class ContainerAllocator>
00142 struct Printer< ::rosserial_msgs::Log_<ContainerAllocator> >
00143 {
00144   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::rosserial_msgs::Log_<ContainerAllocator> & v) 
00145   {
00146     s << indent << "level: ";
00147     Printer<uint8_t>::stream(s, indent + "  ", v.level);
00148     s << indent << "msg: ";
00149     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.msg);
00150   }
00151 };
00152 
00153 
00154 } // namespace message_operations
00155 } // namespace ros
00156 
00157 #endif // ROSSERIAL_MSGS_MESSAGE_LOG_H
00158 


rosserial_msgs
Author(s): Michael Ferguson
autogenerated on Fri Dec 6 2013 20:35:42