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