$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-roslisp_support/doc_stacks/2013-03-02_13-22-13.880907/roslisp_support/test_roslisp/msg/Bar.msg */ 00002 #ifndef TEST_ROSLISP_MESSAGE_BAR_H 00003 #define TEST_ROSLISP_MESSAGE_BAR_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 test_roslisp 00019 { 00020 template <class ContainerAllocator> 00021 struct Bar_ { 00022 typedef Bar_<ContainerAllocator> Type; 00023 00024 Bar_() 00025 : y(0) 00026 { 00027 } 00028 00029 Bar_(const ContainerAllocator& _alloc) 00030 : y(0) 00031 { 00032 } 00033 00034 typedef int32_t _y_type; 00035 int32_t y; 00036 00037 enum { x = 10 }; 00038 00039 private: 00040 static const char* __s_getDataType_() { return "test_roslisp/Bar"; } 00041 public: 00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00043 00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00045 00046 private: 00047 static const char* __s_getMD5Sum_() { return "5ba74f2bf8bd6cffecedb296d0cb44d1"; } 00048 public: 00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00050 00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00052 00053 private: 00054 static const char* __s_getMessageDefinition_() { return "int32 x=10\n\ 00055 int32 y\n\ 00056 "; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00059 00060 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00061 00062 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00063 { 00064 ros::serialization::OStream stream(write_ptr, 1000000000); 00065 ros::serialization::serialize(stream, y); 00066 return stream.getData(); 00067 } 00068 00069 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00070 { 00071 ros::serialization::IStream stream(read_ptr, 1000000000); 00072 ros::serialization::deserialize(stream, y); 00073 return stream.getData(); 00074 } 00075 00076 ROS_DEPRECATED virtual uint32_t serializationLength() const 00077 { 00078 uint32_t size = 0; 00079 size += ros::serialization::serializationLength(y); 00080 return size; 00081 } 00082 00083 typedef boost::shared_ptr< ::test_roslisp::Bar_<ContainerAllocator> > Ptr; 00084 typedef boost::shared_ptr< ::test_roslisp::Bar_<ContainerAllocator> const> ConstPtr; 00085 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00086 }; // struct Bar 00087 typedef ::test_roslisp::Bar_<std::allocator<void> > Bar; 00088 00089 typedef boost::shared_ptr< ::test_roslisp::Bar> BarPtr; 00090 typedef boost::shared_ptr< ::test_roslisp::Bar const> BarConstPtr; 00091 00092 00093 template<typename ContainerAllocator> 00094 std::ostream& operator<<(std::ostream& s, const ::test_roslisp::Bar_<ContainerAllocator> & v) 00095 { 00096 ros::message_operations::Printer< ::test_roslisp::Bar_<ContainerAllocator> >::stream(s, "", v); 00097 return s;} 00098 00099 } // namespace test_roslisp 00100 00101 namespace ros 00102 { 00103 namespace message_traits 00104 { 00105 template<class ContainerAllocator> struct IsMessage< ::test_roslisp::Bar_<ContainerAllocator> > : public TrueType {}; 00106 template<class ContainerAllocator> struct IsMessage< ::test_roslisp::Bar_<ContainerAllocator> const> : public TrueType {}; 00107 template<class ContainerAllocator> 00108 struct MD5Sum< ::test_roslisp::Bar_<ContainerAllocator> > { 00109 static const char* value() 00110 { 00111 return "5ba74f2bf8bd6cffecedb296d0cb44d1"; 00112 } 00113 00114 static const char* value(const ::test_roslisp::Bar_<ContainerAllocator> &) { return value(); } 00115 static const uint64_t static_value1 = 0x5ba74f2bf8bd6cffULL; 00116 static const uint64_t static_value2 = 0xecedb296d0cb44d1ULL; 00117 }; 00118 00119 template<class ContainerAllocator> 00120 struct DataType< ::test_roslisp::Bar_<ContainerAllocator> > { 00121 static const char* value() 00122 { 00123 return "test_roslisp/Bar"; 00124 } 00125 00126 static const char* value(const ::test_roslisp::Bar_<ContainerAllocator> &) { return value(); } 00127 }; 00128 00129 template<class ContainerAllocator> 00130 struct Definition< ::test_roslisp::Bar_<ContainerAllocator> > { 00131 static const char* value() 00132 { 00133 return "int32 x=10\n\ 00134 int32 y\n\ 00135 "; 00136 } 00137 00138 static const char* value(const ::test_roslisp::Bar_<ContainerAllocator> &) { return value(); } 00139 }; 00140 00141 template<class ContainerAllocator> struct IsFixedSize< ::test_roslisp::Bar_<ContainerAllocator> > : public TrueType {}; 00142 } // namespace message_traits 00143 } // namespace ros 00144 00145 namespace ros 00146 { 00147 namespace serialization 00148 { 00149 00150 template<class ContainerAllocator> struct Serializer< ::test_roslisp::Bar_<ContainerAllocator> > 00151 { 00152 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00153 { 00154 stream.next(m.y); 00155 } 00156 00157 ROS_DECLARE_ALLINONE_SERIALIZER; 00158 }; // struct Bar_ 00159 } // namespace serialization 00160 } // namespace ros 00161 00162 namespace ros 00163 { 00164 namespace message_operations 00165 { 00166 00167 template<class ContainerAllocator> 00168 struct Printer< ::test_roslisp::Bar_<ContainerAllocator> > 00169 { 00170 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roslisp::Bar_<ContainerAllocator> & v) 00171 { 00172 s << indent << "y: "; 00173 Printer<int32_t>::stream(s, indent + " ", v.y); 00174 } 00175 }; 00176 00177 00178 } // namespace message_operations 00179 } // namespace ros 00180 00181 #endif // TEST_ROSLISP_MESSAGE_BAR_H 00182