00001
00002 #ifndef TEST_ROSCPP_SERIALIZATION_MESSAGE_FIXEDLENGTHARRAYOFEXTERNAL_H
00003 #define TEST_ROSCPP_SERIALIZATION_MESSAGE_FIXEDLENGTHARRAYOFEXTERNAL_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 #include "rosgraph_msgs/Log.h"
00014
00015 namespace test_roscpp_serialization
00016 {
00017 template <class ContainerAllocator>
00018 struct FixedLengthArrayOfExternal_ : public ros::Message
00019 {
00020 typedef FixedLengthArrayOfExternal_<ContainerAllocator> Type;
00021
00022 FixedLengthArrayOfExternal_()
00023 : a()
00024 {
00025 }
00026
00027 FixedLengthArrayOfExternal_(const ContainerAllocator& _alloc)
00028 : a()
00029 {
00030 a.assign( ::rosgraph_msgs::Log_<ContainerAllocator> (_alloc));
00031 }
00032
00033 typedef boost::array< ::rosgraph_msgs::Log_<ContainerAllocator> , 4> _a_type;
00034 boost::array< ::rosgraph_msgs::Log_<ContainerAllocator> , 4> a;
00035
00036
00037 ROS_DEPRECATED uint32_t get_a_size() const { return (uint32_t)a.size(); }
00038 private:
00039 static const char* __s_getDataType_() { return "test_roscpp_serialization/FixedLengthArrayOfExternal"; }
00040 public:
00041 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00042
00043 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00044
00045 private:
00046 static const char* __s_getMD5Sum_() { return "cc431047757f431ecd2754e03aa592f8"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00049
00050 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00051
00052 private:
00053 static const char* __s_getMessageDefinition_() { return "# This comment has \"quotes\" in it and \\slashes\\\n\
00054 rosgraph_msgs/Log[4] a\n\
00055 ================================================================================\n\
00056 MSG: rosgraph_msgs/Log\n\
00057 ##\n\
00058 ## Severity level constants\n\
00059 ##\n\
00060 byte DEBUG=1 #debug level\n\
00061 byte INFO=2 #general level\n\
00062 byte WARN=4 #warning level\n\
00063 byte ERROR=8 #error level\n\
00064 byte FATAL=16 #fatal/critical level\n\
00065 ##\n\
00066 ## Fields\n\
00067 ##\n\
00068 Header header\n\
00069 byte level\n\
00070 string name # name of the node\n\
00071 string msg # message \n\
00072 string file # file the message came from\n\
00073 string function # function the message came from\n\
00074 uint32 line # line the message came from\n\
00075 string[] topics # topic names that the node publishes\n\
00076 \n\
00077 ================================================================================\n\
00078 MSG: std_msgs/Header\n\
00079 # Standard metadata for higher-level stamped data types.\n\
00080 # This is generally used to communicate timestamped data \n\
00081 # in a particular coordinate frame.\n\
00082 # \n\
00083 # sequence ID: consecutively increasing ID \n\
00084 uint32 seq\n\
00085 #Two-integer timestamp that is expressed as:\n\
00086 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00087 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00088 # time-handling sugar is provided by the client library\n\
00089 time stamp\n\
00090 #Frame this data is associated with\n\
00091 # 0: no frame\n\
00092 # 1: global frame\n\
00093 string frame_id\n\
00094 \n\
00095 "; }
00096 public:
00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00098
00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00100
00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00102 {
00103 ros::serialization::OStream stream(write_ptr, 1000000000);
00104 ros::serialization::serialize(stream, a);
00105 return stream.getData();
00106 }
00107
00108 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00109 {
00110 ros::serialization::IStream stream(read_ptr, 1000000000);
00111 ros::serialization::deserialize(stream, a);
00112 return stream.getData();
00113 }
00114
00115 ROS_DEPRECATED virtual uint32_t serializationLength() const
00116 {
00117 uint32_t size = 0;
00118 size += ros::serialization::serializationLength(a);
00119 return size;
00120 }
00121
00122 typedef boost::shared_ptr< ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> > Ptr;
00123 typedef boost::shared_ptr< ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> const> ConstPtr;
00124 };
00125 typedef ::test_roscpp_serialization::FixedLengthArrayOfExternal_<std::allocator<void> > FixedLengthArrayOfExternal;
00126
00127 typedef boost::shared_ptr< ::test_roscpp_serialization::FixedLengthArrayOfExternal> FixedLengthArrayOfExternalPtr;
00128 typedef boost::shared_ptr< ::test_roscpp_serialization::FixedLengthArrayOfExternal const> FixedLengthArrayOfExternalConstPtr;
00129
00130
00131 template<typename ContainerAllocator>
00132 std::ostream& operator<<(std::ostream& s, const ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> & v)
00133 {
00134 ros::message_operations::Printer< ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> >::stream(s, "", v);
00135 return s;}
00136
00137 }
00138
00139 namespace ros
00140 {
00141 namespace message_traits
00142 {
00143 template<class ContainerAllocator>
00144 struct MD5Sum< ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "cc431047757f431ecd2754e03aa592f8";
00148 }
00149
00150 static const char* value(const ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> &) { return value(); }
00151 static const uint64_t static_value1 = 0xcc431047757f431eULL;
00152 static const uint64_t static_value2 = 0xcd2754e03aa592f8ULL;
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct DataType< ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "test_roscpp_serialization/FixedLengthArrayOfExternal";
00160 }
00161
00162 static const char* value(const ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator>
00166 struct Definition< ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> > {
00167 static const char* value()
00168 {
00169 return "# This comment has \"quotes\" in it and \\slashes\\\n\
00170 rosgraph_msgs/Log[4] a\n\
00171 ================================================================================\n\
00172 MSG: rosgraph_msgs/Log\n\
00173 ##\n\
00174 ## Severity level constants\n\
00175 ##\n\
00176 byte DEBUG=1 #debug level\n\
00177 byte INFO=2 #general level\n\
00178 byte WARN=4 #warning level\n\
00179 byte ERROR=8 #error level\n\
00180 byte FATAL=16 #fatal/critical level\n\
00181 ##\n\
00182 ## Fields\n\
00183 ##\n\
00184 Header header\n\
00185 byte level\n\
00186 string name # name of the node\n\
00187 string msg # message \n\
00188 string file # file the message came from\n\
00189 string function # function the message came from\n\
00190 uint32 line # line the message came from\n\
00191 string[] topics # topic names that the node publishes\n\
00192 \n\
00193 ================================================================================\n\
00194 MSG: std_msgs/Header\n\
00195 # Standard metadata for higher-level stamped data types.\n\
00196 # This is generally used to communicate timestamped data \n\
00197 # in a particular coordinate frame.\n\
00198 # \n\
00199 # sequence ID: consecutively increasing ID \n\
00200 uint32 seq\n\
00201 #Two-integer timestamp that is expressed as:\n\
00202 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00203 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00204 # time-handling sugar is provided by the client library\n\
00205 time stamp\n\
00206 #Frame this data is associated with\n\
00207 # 0: no frame\n\
00208 # 1: global frame\n\
00209 string frame_id\n\
00210 \n\
00211 ";
00212 }
00213
00214 static const char* value(const ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> &) { return value(); }
00215 };
00216
00217 }
00218 }
00219
00220 namespace ros
00221 {
00222 namespace serialization
00223 {
00224
00225 template<class ContainerAllocator> struct Serializer< ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> >
00226 {
00227 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00228 {
00229 stream.next(m.a);
00230 }
00231
00232 ROS_DECLARE_ALLINONE_SERIALIZER;
00233 };
00234 }
00235 }
00236
00237 namespace ros
00238 {
00239 namespace message_operations
00240 {
00241
00242 template<class ContainerAllocator>
00243 struct Printer< ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> >
00244 {
00245 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roscpp_serialization::FixedLengthArrayOfExternal_<ContainerAllocator> & v)
00246 {
00247 s << indent << "a[]" << std::endl;
00248 for (size_t i = 0; i < v.a.size(); ++i)
00249 {
00250 s << indent << " a[" << i << "]: ";
00251 s << std::endl;
00252 s << indent;
00253 Printer< ::rosgraph_msgs::Log_<ContainerAllocator> >::stream(s, indent + " ", v.a[i]);
00254 }
00255 }
00256 };
00257
00258
00259 }
00260 }
00261
00262 #endif // TEST_ROSCPP_SERIALIZATION_MESSAGE_FIXEDLENGTHARRAYOFEXTERNAL_H
00263