$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/TwoInts.msg */ 00002 #ifndef TEST_ROSLISP_MESSAGE_TWOINTS_H 00003 #define TEST_ROSLISP_MESSAGE_TWOINTS_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/Int16.h" 00018 #include "std_msgs/Int16.h" 00019 00020 namespace test_roslisp 00021 { 00022 template <class ContainerAllocator> 00023 struct TwoInts_ { 00024 typedef TwoInts_<ContainerAllocator> Type; 00025 00026 TwoInts_() 00027 : a() 00028 , b() 00029 { 00030 } 00031 00032 TwoInts_(const ContainerAllocator& _alloc) 00033 : a(_alloc) 00034 , b(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Int16_<ContainerAllocator> _a_type; 00039 ::std_msgs::Int16_<ContainerAllocator> a; 00040 00041 typedef ::std_msgs::Int16_<ContainerAllocator> _b_type; 00042 ::std_msgs::Int16_<ContainerAllocator> b; 00043 00044 00045 private: 00046 static const char* __s_getDataType_() { return "test_roslisp/TwoInts"; } 00047 public: 00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00049 00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00051 00052 private: 00053 static const char* __s_getMD5Sum_() { return "7f80fd04371aa5efefe6eae873a1958e"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00056 00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00058 00059 private: 00060 static const char* __s_getMessageDefinition_() { return "std_msgs/Int16 a\n\ 00061 std_msgs/Int16 b\n\ 00062 \n\ 00063 ================================================================================\n\ 00064 MSG: std_msgs/Int16\n\ 00065 int16 data\n\ 00066 \n\ 00067 "; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00070 00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00074 { 00075 ros::serialization::OStream stream(write_ptr, 1000000000); 00076 ros::serialization::serialize(stream, a); 00077 ros::serialization::serialize(stream, b); 00078 return stream.getData(); 00079 } 00080 00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00082 { 00083 ros::serialization::IStream stream(read_ptr, 1000000000); 00084 ros::serialization::deserialize(stream, a); 00085 ros::serialization::deserialize(stream, b); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint32_t serializationLength() const 00090 { 00091 uint32_t size = 0; 00092 size += ros::serialization::serializationLength(a); 00093 size += ros::serialization::serializationLength(b); 00094 return size; 00095 } 00096 00097 typedef boost::shared_ptr< ::test_roslisp::TwoInts_<ContainerAllocator> > Ptr; 00098 typedef boost::shared_ptr< ::test_roslisp::TwoInts_<ContainerAllocator> const> ConstPtr; 00099 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00100 }; // struct TwoInts 00101 typedef ::test_roslisp::TwoInts_<std::allocator<void> > TwoInts; 00102 00103 typedef boost::shared_ptr< ::test_roslisp::TwoInts> TwoIntsPtr; 00104 typedef boost::shared_ptr< ::test_roslisp::TwoInts const> TwoIntsConstPtr; 00105 00106 00107 template<typename ContainerAllocator> 00108 std::ostream& operator<<(std::ostream& s, const ::test_roslisp::TwoInts_<ContainerAllocator> & v) 00109 { 00110 ros::message_operations::Printer< ::test_roslisp::TwoInts_<ContainerAllocator> >::stream(s, "", v); 00111 return s;} 00112 00113 } // namespace test_roslisp 00114 00115 namespace ros 00116 { 00117 namespace message_traits 00118 { 00119 template<class ContainerAllocator> struct IsMessage< ::test_roslisp::TwoInts_<ContainerAllocator> > : public TrueType {}; 00120 template<class ContainerAllocator> struct IsMessage< ::test_roslisp::TwoInts_<ContainerAllocator> const> : public TrueType {}; 00121 template<class ContainerAllocator> 00122 struct MD5Sum< ::test_roslisp::TwoInts_<ContainerAllocator> > { 00123 static const char* value() 00124 { 00125 return "7f80fd04371aa5efefe6eae873a1958e"; 00126 } 00127 00128 static const char* value(const ::test_roslisp::TwoInts_<ContainerAllocator> &) { return value(); } 00129 static const uint64_t static_value1 = 0x7f80fd04371aa5efULL; 00130 static const uint64_t static_value2 = 0xefe6eae873a1958eULL; 00131 }; 00132 00133 template<class ContainerAllocator> 00134 struct DataType< ::test_roslisp::TwoInts_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "test_roslisp/TwoInts"; 00138 } 00139 00140 static const char* value(const ::test_roslisp::TwoInts_<ContainerAllocator> &) { return value(); } 00141 }; 00142 00143 template<class ContainerAllocator> 00144 struct Definition< ::test_roslisp::TwoInts_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "std_msgs/Int16 a\n\ 00148 std_msgs/Int16 b\n\ 00149 \n\ 00150 ================================================================================\n\ 00151 MSG: std_msgs/Int16\n\ 00152 int16 data\n\ 00153 \n\ 00154 "; 00155 } 00156 00157 static const char* value(const ::test_roslisp::TwoInts_<ContainerAllocator> &) { return value(); } 00158 }; 00159 00160 template<class ContainerAllocator> struct IsFixedSize< ::test_roslisp::TwoInts_<ContainerAllocator> > : public TrueType {}; 00161 } // namespace message_traits 00162 } // namespace ros 00163 00164 namespace ros 00165 { 00166 namespace serialization 00167 { 00168 00169 template<class ContainerAllocator> struct Serializer< ::test_roslisp::TwoInts_<ContainerAllocator> > 00170 { 00171 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00172 { 00173 stream.next(m.a); 00174 stream.next(m.b); 00175 } 00176 00177 ROS_DECLARE_ALLINONE_SERIALIZER; 00178 }; // struct TwoInts_ 00179 } // namespace serialization 00180 } // namespace ros 00181 00182 namespace ros 00183 { 00184 namespace message_operations 00185 { 00186 00187 template<class ContainerAllocator> 00188 struct Printer< ::test_roslisp::TwoInts_<ContainerAllocator> > 00189 { 00190 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roslisp::TwoInts_<ContainerAllocator> & v) 00191 { 00192 s << indent << "a: "; 00193 s << std::endl; 00194 Printer< ::std_msgs::Int16_<ContainerAllocator> >::stream(s, indent + " ", v.a); 00195 s << indent << "b: "; 00196 s << std::endl; 00197 Printer< ::std_msgs::Int16_<ContainerAllocator> >::stream(s, indent + " ", v.b); 00198 } 00199 }; 00200 00201 00202 } // namespace message_operations 00203 } // namespace ros 00204 00205 #endif // TEST_ROSLISP_MESSAGE_TWOINTS_H 00206