ServiceReturnCode.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-industrial_core/doc_stacks/2014-10-06_00-49-33.800926/industrial_core/industrial_msgs/msg/ServiceReturnCode.msg */
00002 #ifndef INDUSTRIAL_MSGS_MESSAGE_SERVICERETURNCODE_H
00003 #define INDUSTRIAL_MSGS_MESSAGE_SERVICERETURNCODE_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 ServiceReturnCode_ {
00022   typedef ServiceReturnCode_<ContainerAllocator> Type;
00023 
00024   ServiceReturnCode_()
00025   : val(0)
00026   {
00027   }
00028 
00029   ServiceReturnCode_(const ContainerAllocator& _alloc)
00030   : val(0)
00031   {
00032   }
00033 
00034   typedef int8_t _val_type;
00035   int8_t val;
00036 
00037   enum { SUCCESS = 1 };
00038   enum { FAILURE = -1 };
00039 
00040   typedef boost::shared_ptr< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> > Ptr;
00041   typedef boost::shared_ptr< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator>  const> ConstPtr;
00042   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00043 }; // struct ServiceReturnCode
00044 typedef  ::industrial_msgs::ServiceReturnCode_<std::allocator<void> > ServiceReturnCode;
00045 
00046 typedef boost::shared_ptr< ::industrial_msgs::ServiceReturnCode> ServiceReturnCodePtr;
00047 typedef boost::shared_ptr< ::industrial_msgs::ServiceReturnCode const> ServiceReturnCodeConstPtr;
00048 
00049 
00050 template<typename ContainerAllocator>
00051 std::ostream& operator<<(std::ostream& s, const  ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> & v)
00052 {
00053   ros::message_operations::Printer< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> >::stream(s, "", v);
00054   return s;}
00055 
00056 } // namespace industrial_msgs
00057 
00058 namespace ros
00059 {
00060 namespace message_traits
00061 {
00062 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> > : public TrueType {};
00063 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator>  const> : public TrueType {};
00064 template<class ContainerAllocator>
00065 struct MD5Sum< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> > {
00066   static const char* value() 
00067   {
00068     return "85a4e241266be66b1e1426b03083a412";
00069   }
00070 
00071   static const char* value(const  ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> &) { return value(); } 
00072   static const uint64_t static_value1 = 0x85a4e241266be66bULL;
00073   static const uint64_t static_value2 = 0x1e1426b03083a412ULL;
00074 };
00075 
00076 template<class ContainerAllocator>
00077 struct DataType< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> > {
00078   static const char* value() 
00079   {
00080     return "industrial_msgs/ServiceReturnCode";
00081   }
00082 
00083   static const char* value(const  ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> &) { return value(); } 
00084 };
00085 
00086 template<class ContainerAllocator>
00087 struct Definition< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> > {
00088   static const char* value() 
00089   {
00090     return "# Service return codes for simple requests.  All ROS-Industrial service\n\
00091 # replies are required to have a return code indicating success or failure\n\
00092 # Specific return codes for different failure should be negative.\n\
00093 int8 val\n\
00094 \n\
00095 int8 SUCCESS = 1\n\
00096 int8 FAILURE = -1\n\
00097 \n\
00098 \n\
00099 ";
00100   }
00101 
00102   static const char* value(const  ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> &) { return value(); } 
00103 };
00104 
00105 template<class ContainerAllocator> struct IsFixedSize< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> > : public TrueType {};
00106 } // namespace message_traits
00107 } // namespace ros
00108 
00109 namespace ros
00110 {
00111 namespace serialization
00112 {
00113 
00114 template<class ContainerAllocator> struct Serializer< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> >
00115 {
00116   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00117   {
00118     stream.next(m.val);
00119   }
00120 
00121   ROS_DECLARE_ALLINONE_SERIALIZER;
00122 }; // struct ServiceReturnCode_
00123 } // namespace serialization
00124 } // namespace ros
00125 
00126 namespace ros
00127 {
00128 namespace message_operations
00129 {
00130 
00131 template<class ContainerAllocator>
00132 struct Printer< ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> >
00133 {
00134   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::industrial_msgs::ServiceReturnCode_<ContainerAllocator> & v) 
00135   {
00136     s << indent << "val: ";
00137     Printer<int8_t>::stream(s, indent + "  ", v.val);
00138   }
00139 };
00140 
00141 
00142 } // namespace message_operations
00143 } // namespace ros
00144 
00145 #endif // INDUSTRIAL_MSGS_MESSAGE_SERVICERETURNCODE_H
00146 


industrial_msgs
Author(s): Shaun M. Edwards
autogenerated on Mon Oct 6 2014 00:53:40