Go to the documentation of this file.00001
00002 #ifndef TEST_ROSLISP_MESSAGE_FOO_H
00003 #define TEST_ROSLISP_MESSAGE_FOO_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 "test_roslisp/Bar.h"
00018 #include "test_roslisp/Bar.h"
00019
00020 namespace test_roslisp
00021 {
00022 template <class ContainerAllocator>
00023 struct Foo_ {
00024 typedef Foo_<ContainerAllocator> Type;
00025
00026 Foo_()
00027 : y()
00028 , z()
00029 {
00030 }
00031
00032 Foo_(const ContainerAllocator& _alloc)
00033 : y(_alloc)
00034 , z(_alloc)
00035 {
00036 }
00037
00038 typedef ::test_roslisp::Bar_<ContainerAllocator> _y_type;
00039 ::test_roslisp::Bar_<ContainerAllocator> y;
00040
00041 typedef std::vector< ::test_roslisp::Bar_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslisp::Bar_<ContainerAllocator> >::other > _z_type;
00042 std::vector< ::test_roslisp::Bar_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslisp::Bar_<ContainerAllocator> >::other > z;
00043
00044
00045 typedef boost::shared_ptr< ::test_roslisp::Foo_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::test_roslisp::Foo_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::test_roslisp::Foo_<std::allocator<void> > Foo;
00050
00051 typedef boost::shared_ptr< ::test_roslisp::Foo> FooPtr;
00052 typedef boost::shared_ptr< ::test_roslisp::Foo const> FooConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::test_roslisp::Foo_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::test_roslisp::Foo_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::test_roslisp::Foo_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::test_roslisp::Foo_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::test_roslisp::Foo_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "7cdb6f5fcd1a055355fcf8728e010dae";
00074 }
00075
00076 static const char* value(const ::test_roslisp::Foo_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0x7cdb6f5fcd1a0553ULL;
00078 static const uint64_t static_value2 = 0x55fcf8728e010daeULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::test_roslisp::Foo_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "test_roslisp/Foo";
00086 }
00087
00088 static const char* value(const ::test_roslisp::Foo_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::test_roslisp::Foo_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "Bar y\n\
00096 Bar[] z\n\
00097 ================================================================================\n\
00098 MSG: test_roslisp/Bar\n\
00099 int32 x=10\n\
00100 int32 y\n\
00101 ";
00102 }
00103
00104 static const char* value(const ::test_roslisp::Foo_<ContainerAllocator> &) { return value(); }
00105 };
00106
00107 }
00108 }
00109
00110 namespace ros
00111 {
00112 namespace serialization
00113 {
00114
00115 template<class ContainerAllocator> struct Serializer< ::test_roslisp::Foo_<ContainerAllocator> >
00116 {
00117 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00118 {
00119 stream.next(m.y);
00120 stream.next(m.z);
00121 }
00122
00123 ROS_DECLARE_ALLINONE_SERIALIZER;
00124 };
00125 }
00126 }
00127
00128 namespace ros
00129 {
00130 namespace message_operations
00131 {
00132
00133 template<class ContainerAllocator>
00134 struct Printer< ::test_roslisp::Foo_<ContainerAllocator> >
00135 {
00136 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roslisp::Foo_<ContainerAllocator> & v)
00137 {
00138 s << indent << "y: ";
00139 s << std::endl;
00140 Printer< ::test_roslisp::Bar_<ContainerAllocator> >::stream(s, indent + " ", v.y);
00141 s << indent << "z[]" << std::endl;
00142 for (size_t i = 0; i < v.z.size(); ++i)
00143 {
00144 s << indent << " z[" << i << "]: ";
00145 s << std::endl;
00146 s << indent;
00147 Printer< ::test_roslisp::Bar_<ContainerAllocator> >::stream(s, indent + " ", v.z[i]);
00148 }
00149 }
00150 };
00151
00152
00153 }
00154 }
00155
00156 #endif // TEST_ROSLISP_MESSAGE_FOO_H
00157