StateMachineStatus.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-mtconnect/doc_stacks/2014-01-06_11-26-16.778192/mtconnect/mtconnect_example/mtconnect_example_msgs/msg/StateMachineStatus.msg */
00002 #ifndef MTCONNECT_EXAMPLE_MSGS_MESSAGE_STATEMACHINESTATUS_H
00003 #define MTCONNECT_EXAMPLE_MSGS_MESSAGE_STATEMACHINESTATUS_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 #include "std_msgs/Header.h"
00018 
00019 namespace mtconnect_example_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct StateMachineStatus_ {
00023   typedef StateMachineStatus_<ContainerAllocator> Type;
00024 
00025   StateMachineStatus_()
00026   : header()
00027   , state(0)
00028   , state_name()
00029   {
00030   }
00031 
00032   StateMachineStatus_(const ContainerAllocator& _alloc)
00033   : header(_alloc)
00034   , state(0)
00035   , state_name(_alloc)
00036   {
00037   }
00038 
00039   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00040    ::std_msgs::Header_<ContainerAllocator>  header;
00041 
00042   typedef int32_t _state_type;
00043   int32_t state;
00044 
00045   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _state_name_type;
00046   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  state_name;
00047 
00048 
00049   typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> > Ptr;
00050   typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator>  const> ConstPtr;
00051   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 }; // struct StateMachineStatus
00053 typedef  ::mtconnect_example_msgs::StateMachineStatus_<std::allocator<void> > StateMachineStatus;
00054 
00055 typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineStatus> StateMachineStatusPtr;
00056 typedef boost::shared_ptr< ::mtconnect_example_msgs::StateMachineStatus const> StateMachineStatusConstPtr;
00057 
00058 
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const  ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> & v)
00061 {
00062   ros::message_operations::Printer< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> >::stream(s, "", v);
00063   return s;}
00064 
00065 } // namespace mtconnect_example_msgs
00066 
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator>  const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> > {
00075   static const char* value() 
00076   {
00077     return "6fff571932373881ce2e9858ba00d3c3";
00078   }
00079 
00080   static const char* value(const  ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> &) { return value(); } 
00081   static const uint64_t static_value1 = 0x6fff571932373881ULL;
00082   static const uint64_t static_value2 = 0xce2e9858ba00d3c3ULL;
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct DataType< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "mtconnect_example_msgs/StateMachineStatus";
00090   }
00091 
00092   static const char* value(const  ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> &) { return value(); } 
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct Definition< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "# The StateMachineStatus message contains status information \n\
00100 # about the current running state machine.\n\
00101 \n\
00102 # The header frame ID is not used\n\
00103 Header header\n\
00104 \n\
00105 # Current state (enumerated type)\n\
00106 int32 state\n\
00107 \n\
00108 # Current state (string)\n\
00109 string state_name\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: std_msgs/Header\n\
00113 # Standard metadata for higher-level stamped data types.\n\
00114 # This is generally used to communicate timestamped data \n\
00115 # in a particular coordinate frame.\n\
00116 # \n\
00117 # sequence ID: consecutively increasing ID \n\
00118 uint32 seq\n\
00119 #Two-integer timestamp that is expressed as:\n\
00120 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00121 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00122 # time-handling sugar is provided by the client library\n\
00123 time stamp\n\
00124 #Frame this data is associated with\n\
00125 # 0: no frame\n\
00126 # 1: global frame\n\
00127 string frame_id\n\
00128 \n\
00129 ";
00130   }
00131 
00132   static const char* value(const  ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> &) { return value(); } 
00133 };
00134 
00135 template<class ContainerAllocator> struct HasHeader< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> > : public TrueType {};
00136 template<class ContainerAllocator> struct HasHeader< const ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> > : public TrueType {};
00137 } // namespace message_traits
00138 } // namespace ros
00139 
00140 namespace ros
00141 {
00142 namespace serialization
00143 {
00144 
00145 template<class ContainerAllocator> struct Serializer< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> >
00146 {
00147   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00148   {
00149     stream.next(m.header);
00150     stream.next(m.state);
00151     stream.next(m.state_name);
00152   }
00153 
00154   ROS_DECLARE_ALLINONE_SERIALIZER;
00155 }; // struct StateMachineStatus_
00156 } // namespace serialization
00157 } // namespace ros
00158 
00159 namespace ros
00160 {
00161 namespace message_operations
00162 {
00163 
00164 template<class ContainerAllocator>
00165 struct Printer< ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> >
00166 {
00167   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::mtconnect_example_msgs::StateMachineStatus_<ContainerAllocator> & v) 
00168   {
00169     s << indent << "header: ";
00170 s << std::endl;
00171     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00172     s << indent << "state: ";
00173     Printer<int32_t>::stream(s, indent + "  ", v.state);
00174     s << indent << "state_name: ";
00175     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.state_name);
00176   }
00177 };
00178 
00179 
00180 } // namespace message_operations
00181 } // namespace ros
00182 
00183 #endif // MTCONNECT_EXAMPLE_MSGS_MESSAGE_STATEMACHINESTATUS_H
00184 


mtconnect_example_msgs
Author(s): Shaun M. Edwards
autogenerated on Mon Jan 6 2014 11:29:52