ScriptState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-cob_command_tools/doc_stacks/2014-10-05_22-55-16.276731/cob_command_tools/cob_script_server/msg/ScriptState.msg */
00002 #ifndef COB_SCRIPT_SERVER_MESSAGE_SCRIPTSTATE_H
00003 #define COB_SCRIPT_SERVER_MESSAGE_SCRIPTSTATE_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 cob_script_server
00020 {
00021 template <class ContainerAllocator>
00022 struct ScriptState_ {
00023   typedef ScriptState_<ContainerAllocator> Type;
00024 
00025   ScriptState_()
00026   : header()
00027   , number(0)
00028   , function_name()
00029   , component_name()
00030   , parameter_name()
00031   , full_graph_name()
00032   , state(0)
00033   , error_code(0)
00034   {
00035   }
00036 
00037   ScriptState_(const ContainerAllocator& _alloc)
00038   : header(_alloc)
00039   , number(0)
00040   , function_name(_alloc)
00041   , component_name(_alloc)
00042   , parameter_name(_alloc)
00043   , full_graph_name(_alloc)
00044   , state(0)
00045   , error_code(0)
00046   {
00047   }
00048 
00049   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00050    ::std_msgs::Header_<ContainerAllocator>  header;
00051 
00052   typedef int16_t _number_type;
00053   int16_t number;
00054 
00055   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _function_name_type;
00056   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  function_name;
00057 
00058   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _component_name_type;
00059   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  component_name;
00060 
00061   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _parameter_name_type;
00062   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  parameter_name;
00063 
00064   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _full_graph_name_type;
00065   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  full_graph_name;
00066 
00067   typedef int8_t _state_type;
00068   int8_t state;
00069 
00070   typedef int16_t _error_code_type;
00071   int16_t error_code;
00072 
00073   enum { UNKNOWN = 0 };
00074   enum { ACTIVE = 1 };
00075   enum { SUCCEEDED = 2 };
00076   enum { FAILED = 3 };
00077   enum { PAUSED = 4 };
00078 
00079   typedef boost::shared_ptr< ::cob_script_server::ScriptState_<ContainerAllocator> > Ptr;
00080   typedef boost::shared_ptr< ::cob_script_server::ScriptState_<ContainerAllocator>  const> ConstPtr;
00081   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00082 }; // struct ScriptState
00083 typedef  ::cob_script_server::ScriptState_<std::allocator<void> > ScriptState;
00084 
00085 typedef boost::shared_ptr< ::cob_script_server::ScriptState> ScriptStatePtr;
00086 typedef boost::shared_ptr< ::cob_script_server::ScriptState const> ScriptStateConstPtr;
00087 
00088 
00089 template<typename ContainerAllocator>
00090 std::ostream& operator<<(std::ostream& s, const  ::cob_script_server::ScriptState_<ContainerAllocator> & v)
00091 {
00092   ros::message_operations::Printer< ::cob_script_server::ScriptState_<ContainerAllocator> >::stream(s, "", v);
00093   return s;}
00094 
00095 } // namespace cob_script_server
00096 
00097 namespace ros
00098 {
00099 namespace message_traits
00100 {
00101 template<class ContainerAllocator> struct IsMessage< ::cob_script_server::ScriptState_<ContainerAllocator> > : public TrueType {};
00102 template<class ContainerAllocator> struct IsMessage< ::cob_script_server::ScriptState_<ContainerAllocator>  const> : public TrueType {};
00103 template<class ContainerAllocator>
00104 struct MD5Sum< ::cob_script_server::ScriptState_<ContainerAllocator> > {
00105   static const char* value() 
00106   {
00107     return "4981a5a5be8dbf926085d25a1acf43ca";
00108   }
00109 
00110   static const char* value(const  ::cob_script_server::ScriptState_<ContainerAllocator> &) { return value(); } 
00111   static const uint64_t static_value1 = 0x4981a5a5be8dbf92ULL;
00112   static const uint64_t static_value2 = 0x6085d25a1acf43caULL;
00113 };
00114 
00115 template<class ContainerAllocator>
00116 struct DataType< ::cob_script_server::ScriptState_<ContainerAllocator> > {
00117   static const char* value() 
00118   {
00119     return "cob_script_server/ScriptState";
00120   }
00121 
00122   static const char* value(const  ::cob_script_server::ScriptState_<ContainerAllocator> &) { return value(); } 
00123 };
00124 
00125 template<class ContainerAllocator>
00126 struct Definition< ::cob_script_server::ScriptState_<ContainerAllocator> > {
00127   static const char* value() 
00128   {
00129     return "Header header\n\
00130 int16 number\n\
00131 string function_name\n\
00132 string component_name\n\
00133 string parameter_name\n\
00134 string full_graph_name\n\
00135 \n\
00136 # Possible execution states\n\
00137 byte UNKNOWN=0\n\
00138 byte ACTIVE=1\n\
00139 byte SUCCEEDED=2\n\
00140 byte FAILED=3\n\
00141 byte PAUSED=4\n\
00142 \n\
00143 byte state # state of execution\n\
00144 int16 error_code # current error_code for state\n\
00145 \n\
00146 ================================================================================\n\
00147 MSG: std_msgs/Header\n\
00148 # Standard metadata for higher-level stamped data types.\n\
00149 # This is generally used to communicate timestamped data \n\
00150 # in a particular coordinate frame.\n\
00151 # \n\
00152 # sequence ID: consecutively increasing ID \n\
00153 uint32 seq\n\
00154 #Two-integer timestamp that is expressed as:\n\
00155 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00156 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00157 # time-handling sugar is provided by the client library\n\
00158 time stamp\n\
00159 #Frame this data is associated with\n\
00160 # 0: no frame\n\
00161 # 1: global frame\n\
00162 string frame_id\n\
00163 \n\
00164 ";
00165   }
00166 
00167   static const char* value(const  ::cob_script_server::ScriptState_<ContainerAllocator> &) { return value(); } 
00168 };
00169 
00170 template<class ContainerAllocator> struct HasHeader< ::cob_script_server::ScriptState_<ContainerAllocator> > : public TrueType {};
00171 template<class ContainerAllocator> struct HasHeader< const ::cob_script_server::ScriptState_<ContainerAllocator> > : public TrueType {};
00172 } // namespace message_traits
00173 } // namespace ros
00174 
00175 namespace ros
00176 {
00177 namespace serialization
00178 {
00179 
00180 template<class ContainerAllocator> struct Serializer< ::cob_script_server::ScriptState_<ContainerAllocator> >
00181 {
00182   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00183   {
00184     stream.next(m.header);
00185     stream.next(m.number);
00186     stream.next(m.function_name);
00187     stream.next(m.component_name);
00188     stream.next(m.parameter_name);
00189     stream.next(m.full_graph_name);
00190     stream.next(m.state);
00191     stream.next(m.error_code);
00192   }
00193 
00194   ROS_DECLARE_ALLINONE_SERIALIZER;
00195 }; // struct ScriptState_
00196 } // namespace serialization
00197 } // namespace ros
00198 
00199 namespace ros
00200 {
00201 namespace message_operations
00202 {
00203 
00204 template<class ContainerAllocator>
00205 struct Printer< ::cob_script_server::ScriptState_<ContainerAllocator> >
00206 {
00207   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::cob_script_server::ScriptState_<ContainerAllocator> & v) 
00208   {
00209     s << indent << "header: ";
00210 s << std::endl;
00211     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00212     s << indent << "number: ";
00213     Printer<int16_t>::stream(s, indent + "  ", v.number);
00214     s << indent << "function_name: ";
00215     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.function_name);
00216     s << indent << "component_name: ";
00217     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.component_name);
00218     s << indent << "parameter_name: ";
00219     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.parameter_name);
00220     s << indent << "full_graph_name: ";
00221     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.full_graph_name);
00222     s << indent << "state: ";
00223     Printer<int8_t>::stream(s, indent + "  ", v.state);
00224     s << indent << "error_code: ";
00225     Printer<int16_t>::stream(s, indent + "  ", v.error_code);
00226   }
00227 };
00228 
00229 
00230 } // namespace message_operations
00231 } // namespace ros
00232 
00233 #endif // COB_SCRIPT_SERVER_MESSAGE_SCRIPTSTATE_H
00234 


cob_script_server
Author(s): Florian Weisshardt
autogenerated on Sun Oct 5 2014 22:59:42