Go to the documentation of this file.00001
00002 #ifndef INDUSTRIAL_MSGS_MESSAGE_DEBUGLEVEL_H
00003 #define INDUSTRIAL_MSGS_MESSAGE_DEBUGLEVEL_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 industrial_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct DebugLevel_ {
00022 typedef DebugLevel_<ContainerAllocator> Type;
00023
00024 DebugLevel_()
00025 : val(0)
00026 {
00027 }
00028
00029 DebugLevel_(const ContainerAllocator& _alloc)
00030 : val(0)
00031 {
00032 }
00033
00034 typedef uint8_t _val_type;
00035 uint8_t val;
00036
00037 enum { DEBUG = 5 };
00038 enum { INFO = 4 };
00039 enum { WARN = 3 };
00040 enum { ERROR = 2 };
00041 enum { FATAL = 1 };
00042 enum { NONE = 0 };
00043
00044 typedef boost::shared_ptr< ::industrial_msgs::DebugLevel_<ContainerAllocator> > Ptr;
00045 typedef boost::shared_ptr< ::industrial_msgs::DebugLevel_<ContainerAllocator> const> ConstPtr;
00046 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 };
00048 typedef ::industrial_msgs::DebugLevel_<std::allocator<void> > DebugLevel;
00049
00050 typedef boost::shared_ptr< ::industrial_msgs::DebugLevel> DebugLevelPtr;
00051 typedef boost::shared_ptr< ::industrial_msgs::DebugLevel const> DebugLevelConstPtr;
00052
00053
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const ::industrial_msgs::DebugLevel_<ContainerAllocator> & v)
00056 {
00057 ros::message_operations::Printer< ::industrial_msgs::DebugLevel_<ContainerAllocator> >::stream(s, "", v);
00058 return s;}
00059
00060 }
00061
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::DebugLevel_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::DebugLevel_<ContainerAllocator> const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::industrial_msgs::DebugLevel_<ContainerAllocator> > {
00070 static const char* value()
00071 {
00072 return "5bfde194fd95d83abdb02a03ee48fbe7";
00073 }
00074
00075 static const char* value(const ::industrial_msgs::DebugLevel_<ContainerAllocator> &) { return value(); }
00076 static const uint64_t static_value1 = 0x5bfde194fd95d83aULL;
00077 static const uint64_t static_value2 = 0xbdb02a03ee48fbe7ULL;
00078 };
00079
00080 template<class ContainerAllocator>
00081 struct DataType< ::industrial_msgs::DebugLevel_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "industrial_msgs/DebugLevel";
00085 }
00086
00087 static const char* value(const ::industrial_msgs::DebugLevel_<ContainerAllocator> &) { return value(); }
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct Definition< ::industrial_msgs::DebugLevel_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "# Debug level message enumeration. This may replicate some functionality that\n\
00095 # alreay exists in the ROS logger.\n\
00096 # TODO: Get more information on the ROS Logger.\n\
00097 uint8 val\n\
00098 \n\
00099 uint8 DEBUG = 5\n\
00100 uint8 INFO = 4\n\
00101 uint8 WARN = 3\n\
00102 uint8 ERROR = 2\n\
00103 uint8 FATAL = 1\n\
00104 uint8 NONE = 0 \n\
00105 \n\
00106 ";
00107 }
00108
00109 static const char* value(const ::industrial_msgs::DebugLevel_<ContainerAllocator> &) { return value(); }
00110 };
00111
00112 template<class ContainerAllocator> struct IsFixedSize< ::industrial_msgs::DebugLevel_<ContainerAllocator> > : public TrueType {};
00113 }
00114 }
00115
00116 namespace ros
00117 {
00118 namespace serialization
00119 {
00120
00121 template<class ContainerAllocator> struct Serializer< ::industrial_msgs::DebugLevel_<ContainerAllocator> >
00122 {
00123 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00124 {
00125 stream.next(m.val);
00126 }
00127
00128 ROS_DECLARE_ALLINONE_SERIALIZER;
00129 };
00130 }
00131 }
00132
00133 namespace ros
00134 {
00135 namespace message_operations
00136 {
00137
00138 template<class ContainerAllocator>
00139 struct Printer< ::industrial_msgs::DebugLevel_<ContainerAllocator> >
00140 {
00141 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::industrial_msgs::DebugLevel_<ContainerAllocator> & v)
00142 {
00143 s << indent << "val: ";
00144 Printer<uint8_t>::stream(s, indent + " ", v.val);
00145 }
00146 };
00147
00148
00149 }
00150 }
00151
00152 #endif // INDUSTRIAL_MSGS_MESSAGE_DEBUGLEVEL_H
00153