00001
00002 #ifndef TEST_ROSCPP_SERIALIZATION_MESSAGE_CONSTANTS_H
00003 #define TEST_ROSCPP_SERIALIZATION_MESSAGE_CONSTANTS_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace test_roscpp_serialization
00015 {
00016 template <class ContainerAllocator>
00017 struct Constants_ : public ros::Message
00018 {
00019 typedef Constants_<ContainerAllocator> Type;
00020
00021 Constants_()
00022 {
00023 }
00024
00025 Constants_(const ContainerAllocator& _alloc)
00026 {
00027 }
00028
00029 enum { a = 1 };
00030 enum { b = 2 };
00031 enum { c = 3 };
00032 enum { d = 4 };
00033 enum { e = 5 };
00034 enum { f = 6 };
00035 enum { g = 7 };
00036 enum { h = 8 };
00037 static const float fa;
00038 static const double fb;
00039 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > str;
00040 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > str2;
00041
00042 private:
00043 static const char* __s_getDataType_() { return "test_roscpp_serialization/Constants"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "0032309c8dd2c569e0e0d0e75974e750"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "uint8 a = 1\n\
00058 int8 b = 2\n\
00059 uint16 c = 3\n\
00060 int16 d = 4\n\
00061 uint32 e = 5\n\
00062 int32 f = 6\n\
00063 uint64 g = 7\n\
00064 int64 h = 8\n\
00065 float32 fa = 1.5\n\
00066 float64 fb = 40.9\n\
00067 string str = hello there\n\
00068 string str2 = this string has \"quotes\" and \\slashes\\ in it\n\
00069 "; }
00070 public:
00071 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00072
00073 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00074
00075 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00076 {
00077 ros::serialization::OStream stream(write_ptr, 1000000000);
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 return stream.getData();
00085 }
00086
00087 ROS_DEPRECATED virtual uint32_t serializationLength() const
00088 {
00089 uint32_t size = 0;
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::test_roscpp_serialization::Constants_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::test_roscpp_serialization::Constants_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::test_roscpp_serialization::Constants_<std::allocator<void> > Constants;
00097
00098 typedef boost::shared_ptr< ::test_roscpp_serialization::Constants> ConstantsPtr;
00099 typedef boost::shared_ptr< ::test_roscpp_serialization::Constants const> ConstantsConstPtr;
00100
00101 template<typename ContainerAllocator> const float Constants_<ContainerAllocator>::fa = 1.5;
00102 template<typename ContainerAllocator> const double Constants_<ContainerAllocator>::fb = 40.9;
00103 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Constants_<ContainerAllocator>::str = "hello there";
00104 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Constants_<ContainerAllocator>::str2 = "this string has \"quotes\" and \\slashes\\ in it";
00105
00106 template<typename ContainerAllocator>
00107 std::ostream& operator<<(std::ostream& s, const ::test_roscpp_serialization::Constants_<ContainerAllocator> & v)
00108 {
00109 ros::message_operations::Printer< ::test_roscpp_serialization::Constants_<ContainerAllocator> >::stream(s, "", v);
00110 return s;}
00111
00112 }
00113
00114 namespace ros
00115 {
00116 namespace message_traits
00117 {
00118 template<class ContainerAllocator>
00119 struct MD5Sum< ::test_roscpp_serialization::Constants_<ContainerAllocator> > {
00120 static const char* value()
00121 {
00122 return "0032309c8dd2c569e0e0d0e75974e750";
00123 }
00124
00125 static const char* value(const ::test_roscpp_serialization::Constants_<ContainerAllocator> &) { return value(); }
00126 static const uint64_t static_value1 = 0x0032309c8dd2c569ULL;
00127 static const uint64_t static_value2 = 0xe0e0d0e75974e750ULL;
00128 };
00129
00130 template<class ContainerAllocator>
00131 struct DataType< ::test_roscpp_serialization::Constants_<ContainerAllocator> > {
00132 static const char* value()
00133 {
00134 return "test_roscpp_serialization/Constants";
00135 }
00136
00137 static const char* value(const ::test_roscpp_serialization::Constants_<ContainerAllocator> &) { return value(); }
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct Definition< ::test_roscpp_serialization::Constants_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "uint8 a = 1\n\
00145 int8 b = 2\n\
00146 uint16 c = 3\n\
00147 int16 d = 4\n\
00148 uint32 e = 5\n\
00149 int32 f = 6\n\
00150 uint64 g = 7\n\
00151 int64 h = 8\n\
00152 float32 fa = 1.5\n\
00153 float64 fb = 40.9\n\
00154 string str = hello there\n\
00155 string str2 = this string has \"quotes\" and \\slashes\\ in it\n\
00156 ";
00157 }
00158
00159 static const char* value(const ::test_roscpp_serialization::Constants_<ContainerAllocator> &) { return value(); }
00160 };
00161
00162 template<class ContainerAllocator> struct IsFixedSize< ::test_roscpp_serialization::Constants_<ContainerAllocator> > : public TrueType {};
00163 }
00164 }
00165
00166 namespace ros
00167 {
00168 namespace serialization
00169 {
00170
00171 template<class ContainerAllocator> struct Serializer< ::test_roscpp_serialization::Constants_<ContainerAllocator> >
00172 {
00173 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00174 {
00175 }
00176
00177 ROS_DECLARE_ALLINONE_SERIALIZER;
00178 };
00179 }
00180 }
00181
00182 namespace ros
00183 {
00184 namespace message_operations
00185 {
00186
00187 template<class ContainerAllocator>
00188 struct Printer< ::test_roscpp_serialization::Constants_<ContainerAllocator> >
00189 {
00190 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roscpp_serialization::Constants_<ContainerAllocator> & v)
00191 {
00192 }
00193 };
00194
00195
00196 }
00197 }
00198
00199 #endif // TEST_ROSCPP_SERIALIZATION_MESSAGE_CONSTANTS_H
00200