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


continuous_ops_msgs
Author(s): Wim Meeussen
autogenerated on Fri Dec 6 2013 19:57:52