00001
00002 #ifndef TEST_ROSPY_MESSAGE_TESTCONSTANTS_H
00003 #define TEST_ROSPY_MESSAGE_TESTCONSTANTS_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_rospy
00015 {
00016 template <class ContainerAllocator>
00017 struct TestConstants_ : public ros::Message
00018 {
00019 typedef TestConstants_<ContainerAllocator> Type;
00020
00021 TestConstants_()
00022 {
00023 }
00024
00025 TestConstants_(const ContainerAllocator& _alloc)
00026 {
00027 }
00028
00029 static const float A;
00030 static const float B;
00031 static const double C;
00032 enum { X = 123 };
00033 enum { Y = -123 };
00034 enum { Z = 124 };
00035 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > FOO;
00036 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > SINGLEQUOTE;
00037 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > DOUBLEQUOTE;
00038 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > MULTIQUOTE;
00039 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > EXAMPLE;
00040 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > WHITESPACE;
00041 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > EMPTY;
00042 static const uint8_t TRUE;
00043 static const uint8_t FALSE;
00044
00045 private:
00046 static const char* __s_getDataType_() { return "test_rospy/TestConstants"; }
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 "e60959d2ccf9718dc5e42767bebd1644"; }
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 "float32 A=-123.0\n\
00061 float32 B=124.0\n\
00062 float64 C=125.0\n\
00063 int32 X=123\n\
00064 int32 Y=-123\n\
00065 uint32 Z=124\n\
00066 string FOO=foo\n\
00067 string SINGLEQUOTE='hi\n\
00068 string DOUBLEQUOTE=\"hello\" there\n\
00069 string MULTIQUOTE=\"hello\" 'goodbye'\n\
00070 string EXAMPLE=\"#comments\" are ignored, and leading and trailing whitespace removed\n\
00071 string WHITESPACE= strip \n\
00072 string EMPTY= \n\
00073 bool TRUE=1\n\
00074 bool FALSE=0\n\
00075 "; }
00076 public:
00077 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00078
00079 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00080
00081 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00082 {
00083 ros::serialization::OStream stream(write_ptr, 1000000000);
00084 return stream.getData();
00085 }
00086
00087 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00088 {
00089 ros::serialization::IStream stream(read_ptr, 1000000000);
00090 return stream.getData();
00091 }
00092
00093 ROS_DEPRECATED virtual uint32_t serializationLength() const
00094 {
00095 uint32_t size = 0;
00096 return size;
00097 }
00098
00099 typedef boost::shared_ptr< ::test_rospy::TestConstants_<ContainerAllocator> > Ptr;
00100 typedef boost::shared_ptr< ::test_rospy::TestConstants_<ContainerAllocator> const> ConstPtr;
00101 };
00102 typedef ::test_rospy::TestConstants_<std::allocator<void> > TestConstants;
00103
00104 typedef boost::shared_ptr< ::test_rospy::TestConstants> TestConstantsPtr;
00105 typedef boost::shared_ptr< ::test_rospy::TestConstants const> TestConstantsConstPtr;
00106
00107 template<typename ContainerAllocator> const float TestConstants_<ContainerAllocator>::A = -123.0;
00108 template<typename ContainerAllocator> const float TestConstants_<ContainerAllocator>::B = 124.0;
00109 template<typename ContainerAllocator> const double TestConstants_<ContainerAllocator>::C = 125.0;
00110 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > TestConstants_<ContainerAllocator>::FOO = "foo";
00111 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > TestConstants_<ContainerAllocator>::SINGLEQUOTE = "'hi";
00112 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > TestConstants_<ContainerAllocator>::DOUBLEQUOTE = "\"hello\" there";
00113 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > TestConstants_<ContainerAllocator>::MULTIQUOTE = "\"hello\" 'goodbye'";
00114 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > TestConstants_<ContainerAllocator>::EXAMPLE = "\"#comments\" are ignored, and leading and trailing whitespace removed";
00115 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > TestConstants_<ContainerAllocator>::WHITESPACE = "strip";
00116 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > TestConstants_<ContainerAllocator>::EMPTY = "";
00117 template<typename ContainerAllocator> const uint8_t TestConstants_<ContainerAllocator>::TRUE = True;
00118 template<typename ContainerAllocator> const uint8_t TestConstants_<ContainerAllocator>::FALSE = False;
00119
00120 template<typename ContainerAllocator>
00121 std::ostream& operator<<(std::ostream& s, const ::test_rospy::TestConstants_<ContainerAllocator> & v)
00122 {
00123 ros::message_operations::Printer< ::test_rospy::TestConstants_<ContainerAllocator> >::stream(s, "", v);
00124 return s;}
00125
00126 }
00127
00128 namespace ros
00129 {
00130 namespace message_traits
00131 {
00132 template<class ContainerAllocator>
00133 struct MD5Sum< ::test_rospy::TestConstants_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "e60959d2ccf9718dc5e42767bebd1644";
00137 }
00138
00139 static const char* value(const ::test_rospy::TestConstants_<ContainerAllocator> &) { return value(); }
00140 static const uint64_t static_value1 = 0xe60959d2ccf9718dULL;
00141 static const uint64_t static_value2 = 0xc5e42767bebd1644ULL;
00142 };
00143
00144 template<class ContainerAllocator>
00145 struct DataType< ::test_rospy::TestConstants_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "test_rospy/TestConstants";
00149 }
00150
00151 static const char* value(const ::test_rospy::TestConstants_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 template<class ContainerAllocator>
00155 struct Definition< ::test_rospy::TestConstants_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "float32 A=-123.0\n\
00159 float32 B=124.0\n\
00160 float64 C=125.0\n\
00161 int32 X=123\n\
00162 int32 Y=-123\n\
00163 uint32 Z=124\n\
00164 string FOO=foo\n\
00165 string SINGLEQUOTE='hi\n\
00166 string DOUBLEQUOTE=\"hello\" there\n\
00167 string MULTIQUOTE=\"hello\" 'goodbye'\n\
00168 string EXAMPLE=\"#comments\" are ignored, and leading and trailing whitespace removed\n\
00169 string WHITESPACE= strip \n\
00170 string EMPTY= \n\
00171 bool TRUE=1\n\
00172 bool FALSE=0\n\
00173 ";
00174 }
00175
00176 static const char* value(const ::test_rospy::TestConstants_<ContainerAllocator> &) { return value(); }
00177 };
00178
00179 template<class ContainerAllocator> struct IsFixedSize< ::test_rospy::TestConstants_<ContainerAllocator> > : public TrueType {};
00180 }
00181 }
00182
00183 namespace ros
00184 {
00185 namespace serialization
00186 {
00187
00188 template<class ContainerAllocator> struct Serializer< ::test_rospy::TestConstants_<ContainerAllocator> >
00189 {
00190 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00191 {
00192 }
00193
00194 ROS_DECLARE_ALLINONE_SERIALIZER;
00195 };
00196 }
00197 }
00198
00199 namespace ros
00200 {
00201 namespace message_operations
00202 {
00203
00204 template<class ContainerAllocator>
00205 struct Printer< ::test_rospy::TestConstants_<ContainerAllocator> >
00206 {
00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_rospy::TestConstants_<ContainerAllocator> & v)
00208 {
00209 }
00210 };
00211
00212
00213 }
00214 }
00215
00216 #endif // TEST_ROSPY_MESSAGE_TESTCONSTANTS_H
00217