ShellCommandResult.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-alufr-ros-pkg/doc_stacks/2012-12-26_15-13-16.045312/freiburg_tools/shell_execution_action_server/msg/ShellCommandResult.msg */
00002 #ifndef SHELL_EXECUTION_ACTION_SERVER_MESSAGE_SHELLCOMMANDRESULT_H
00003 #define SHELL_EXECUTION_ACTION_SERVER_MESSAGE_SHELLCOMMANDRESULT_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 shell_execution_action_server
00019 {
00020 template <class ContainerAllocator>
00021 struct ShellCommandResult_ {
00022   typedef ShellCommandResult_<ContainerAllocator> Type;
00023 
00024   ShellCommandResult_()
00025   : stdout()
00026   , stderr()
00027   , exit_code(0)
00028   {
00029   }
00030 
00031   ShellCommandResult_(const ContainerAllocator& _alloc)
00032   : stdout(_alloc)
00033   , stderr(_alloc)
00034   , exit_code(0)
00035   {
00036   }
00037 
00038   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _stdout_type;
00039   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  stdout;
00040 
00041   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _stderr_type;
00042   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  stderr;
00043 
00044   typedef uint8_t _exit_code_type;
00045   uint8_t exit_code;
00046 
00047 
00048   typedef boost::shared_ptr< ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> > Ptr;
00049   typedef boost::shared_ptr< ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator>  const> ConstPtr;
00050   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 }; // struct ShellCommandResult
00052 typedef  ::shell_execution_action_server::ShellCommandResult_<std::allocator<void> > ShellCommandResult;
00053 
00054 typedef boost::shared_ptr< ::shell_execution_action_server::ShellCommandResult> ShellCommandResultPtr;
00055 typedef boost::shared_ptr< ::shell_execution_action_server::ShellCommandResult const> ShellCommandResultConstPtr;
00056 
00057 
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const  ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> & v)
00060 {
00061   ros::message_operations::Printer< ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> >::stream(s, "", v);
00062   return s;}
00063 
00064 } // namespace shell_execution_action_server
00065 
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator>  const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> > {
00074   static const char* value() 
00075   {
00076     return "ab1da367af6c5039cad88143b7611458";
00077   }
00078 
00079   static const char* value(const  ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> &) { return value(); } 
00080   static const uint64_t static_value1 = 0xab1da367af6c5039ULL;
00081   static const uint64_t static_value2 = 0xcad88143b7611458ULL;
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct DataType< ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "shell_execution_action_server/ShellCommandResult";
00089   }
00090 
00091   static const char* value(const  ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> &) { return value(); } 
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct Definition< ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00099 #Result (accumulated output from start to end)\n\
00100 string stdout\n\
00101 string stderr\n\
00102 uint8 exit_code\n\
00103 \n\
00104 ";
00105   }
00106 
00107   static const char* value(const  ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> &) { return value(); } 
00108 };
00109 
00110 } // namespace message_traits
00111 } // namespace ros
00112 
00113 namespace ros
00114 {
00115 namespace serialization
00116 {
00117 
00118 template<class ContainerAllocator> struct Serializer< ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> >
00119 {
00120   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00121   {
00122     stream.next(m.stdout);
00123     stream.next(m.stderr);
00124     stream.next(m.exit_code);
00125   }
00126 
00127   ROS_DECLARE_ALLINONE_SERIALIZER;
00128 }; // struct ShellCommandResult_
00129 } // namespace serialization
00130 } // namespace ros
00131 
00132 namespace ros
00133 {
00134 namespace message_operations
00135 {
00136 
00137 template<class ContainerAllocator>
00138 struct Printer< ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> >
00139 {
00140   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::shell_execution_action_server::ShellCommandResult_<ContainerAllocator> & v) 
00141   {
00142     s << indent << "stdout: ";
00143     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.stdout);
00144     s << indent << "stderr: ";
00145     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.stderr);
00146     s << indent << "exit_code: ";
00147     Printer<uint8_t>::stream(s, indent + "  ", v.exit_code);
00148   }
00149 };
00150 
00151 
00152 } // namespace message_operations
00153 } // namespace ros
00154 
00155 #endif // SHELL_EXECUTION_ACTION_SERVER_MESSAGE_SHELLCOMMANDRESULT_H
00156 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


shell_execution_action_server
Author(s): Felix Endres
autogenerated on Wed Dec 26 2012 15:43:06