TestInfo.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-pr2_self_test/doc_stacks/2014-04-22_19-33-54.770728/pr2_self_test/pr2_self_test_msgs/msg/TestInfo.msg */
00002 #ifndef PR2_SELF_TEST_MSGS_MESSAGE_TESTINFO_H
00003 #define PR2_SELF_TEST_MSGS_MESSAGE_TESTINFO_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 pr2_self_test_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct TestInfo_ {
00022   typedef TestInfo_<ContainerAllocator> Type;
00023 
00024   TestInfo_()
00025   : serial()
00026   , test_name()
00027   , test_status(0)
00028   , bay_name()
00029   , machine()
00030   , board(0)
00031   , breaker(0)
00032   , power_status()
00033   , estop(0)
00034   , elapsed(0)
00035   , status_msg()
00036   {
00037   }
00038 
00039   TestInfo_(const ContainerAllocator& _alloc)
00040   : serial(_alloc)
00041   , test_name(_alloc)
00042   , test_status(0)
00043   , bay_name(_alloc)
00044   , machine(_alloc)
00045   , board(0)
00046   , breaker(0)
00047   , power_status(_alloc)
00048   , estop(0)
00049   , elapsed(0)
00050   , status_msg(_alloc)
00051   {
00052   }
00053 
00054   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _serial_type;
00055   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  serial;
00056 
00057   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _test_name_type;
00058   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  test_name;
00059 
00060   typedef int8_t _test_status_type;
00061   int8_t test_status;
00062 
00063   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _bay_name_type;
00064   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  bay_name;
00065 
00066   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _machine_type;
00067   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  machine;
00068 
00069   typedef int32_t _board_type;
00070   int32_t board;
00071 
00072   typedef int32_t _breaker_type;
00073   int32_t breaker;
00074 
00075   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _power_status_type;
00076   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  power_status;
00077 
00078   typedef int8_t _estop_type;
00079   int8_t estop;
00080 
00081   typedef int32_t _elapsed_type;
00082   int32_t elapsed;
00083 
00084   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _status_msg_type;
00085   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  status_msg;
00086 
00087 
00088   typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> > Ptr;
00089   typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator>  const> ConstPtr;
00090   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00091 }; // struct TestInfo
00092 typedef  ::pr2_self_test_msgs::TestInfo_<std::allocator<void> > TestInfo;
00093 
00094 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfo> TestInfoPtr;
00095 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfo const> TestInfoConstPtr;
00096 
00097 
00098 template<typename ContainerAllocator>
00099 std::ostream& operator<<(std::ostream& s, const  ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> & v)
00100 {
00101   ros::message_operations::Printer< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >::stream(s, "", v);
00102   return s;}
00103 
00104 } // namespace pr2_self_test_msgs
00105 
00106 namespace ros
00107 {
00108 namespace message_traits
00109 {
00110 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> > : public TrueType {};
00111 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator>  const> : public TrueType {};
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> > {
00114   static const char* value() 
00115   {
00116     return "594219b720ecaee963aa0b601d38b8f2";
00117   }
00118 
00119   static const char* value(const  ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> &) { return value(); } 
00120   static const uint64_t static_value1 = 0x594219b720ecaee9ULL;
00121   static const uint64_t static_value2 = 0x63aa0b601d38b8f2ULL;
00122 };
00123 
00124 template<class ContainerAllocator>
00125 struct DataType< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> > {
00126   static const char* value() 
00127   {
00128     return "pr2_self_test_msgs/TestInfo";
00129   }
00130 
00131   static const char* value(const  ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> &) { return value(); } 
00132 };
00133 
00134 template<class ContainerAllocator>
00135 struct Definition< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> > {
00136   static const char* value() 
00137   {
00138     return "string serial\n\
00139 string test_name\n\
00140 byte test_status # 127, not launched, 0, ok; 1, warn; 2, error; 3, stale\n\
00141 string bay_name\n\
00142 string machine\n\
00143 int32 board\n\
00144 int32 breaker\n\
00145 string power_status\n\
00146 byte estop # 0, off; 1, on\n\
00147 int32 elapsed\n\
00148 string status_msg\n\
00149 ";
00150   }
00151 
00152   static const char* value(const  ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> &) { return value(); } 
00153 };
00154 
00155 } // namespace message_traits
00156 } // namespace ros
00157 
00158 namespace ros
00159 {
00160 namespace serialization
00161 {
00162 
00163 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >
00164 {
00165   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00166   {
00167     stream.next(m.serial);
00168     stream.next(m.test_name);
00169     stream.next(m.test_status);
00170     stream.next(m.bay_name);
00171     stream.next(m.machine);
00172     stream.next(m.board);
00173     stream.next(m.breaker);
00174     stream.next(m.power_status);
00175     stream.next(m.estop);
00176     stream.next(m.elapsed);
00177     stream.next(m.status_msg);
00178   }
00179 
00180   ROS_DECLARE_ALLINONE_SERIALIZER;
00181 }; // struct TestInfo_
00182 } // namespace serialization
00183 } // namespace ros
00184 
00185 namespace ros
00186 {
00187 namespace message_operations
00188 {
00189 
00190 template<class ContainerAllocator>
00191 struct Printer< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >
00192 {
00193   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> & v) 
00194   {
00195     s << indent << "serial: ";
00196     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.serial);
00197     s << indent << "test_name: ";
00198     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.test_name);
00199     s << indent << "test_status: ";
00200     Printer<int8_t>::stream(s, indent + "  ", v.test_status);
00201     s << indent << "bay_name: ";
00202     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.bay_name);
00203     s << indent << "machine: ";
00204     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.machine);
00205     s << indent << "board: ";
00206     Printer<int32_t>::stream(s, indent + "  ", v.board);
00207     s << indent << "breaker: ";
00208     Printer<int32_t>::stream(s, indent + "  ", v.breaker);
00209     s << indent << "power_status: ";
00210     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.power_status);
00211     s << indent << "estop: ";
00212     Printer<int8_t>::stream(s, indent + "  ", v.estop);
00213     s << indent << "elapsed: ";
00214     Printer<int32_t>::stream(s, indent + "  ", v.elapsed);
00215     s << indent << "status_msg: ";
00216     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.status_msg);
00217   }
00218 };
00219 
00220 
00221 } // namespace message_operations
00222 } // namespace ros
00223 
00224 #endif // PR2_SELF_TEST_MSGS_MESSAGE_TESTINFO_H
00225 


pr2_self_test_msgs
Author(s): Kevin Watts
autogenerated on Tue Apr 22 2014 19:38:26