$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-applanix_driver/doc_stacks/2013-03-01_14-05-02.457261/applanix_driver/applanix_msgs/msg/LoggingControl.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_LOGGINGCONTROL_H 00003 #define APPLANIX_MSGS_MESSAGE_LOGGINGCONTROL_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 "applanix_msgs/OutputGroup.h" 00018 00019 namespace applanix_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct LoggingControl_ { 00023 typedef LoggingControl_<ContainerAllocator> Type; 00024 00025 LoggingControl_() 00026 : transaction(0) 00027 , groups_count(0) 00028 , groups() 00029 , rate(0) 00030 , autolog(0) 00031 , disk_logging(0) 00032 , filename_kernel() 00033 , reserved() 00034 { 00035 filename_kernel.assign(0); 00036 reserved.assign(0); 00037 } 00038 00039 LoggingControl_(const ContainerAllocator& _alloc) 00040 : transaction(0) 00041 , groups_count(0) 00042 , groups(_alloc) 00043 , rate(0) 00044 , autolog(0) 00045 , disk_logging(0) 00046 , filename_kernel() 00047 , reserved() 00048 { 00049 filename_kernel.assign(0); 00050 reserved.assign(0); 00051 } 00052 00053 typedef uint16_t _transaction_type; 00054 uint16_t transaction; 00055 00056 typedef uint16_t _groups_count_type; 00057 uint16_t groups_count; 00058 00059 typedef std::vector< ::applanix_msgs::OutputGroup_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::other > _groups_type; 00060 std::vector< ::applanix_msgs::OutputGroup_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::other > groups; 00061 00062 typedef uint16_t _rate_type; 00063 uint16_t rate; 00064 00065 typedef uint8_t _autolog_type; 00066 uint8_t autolog; 00067 00068 typedef uint8_t _disk_logging_type; 00069 uint8_t disk_logging; 00070 00071 typedef boost::array<uint8_t, 32> _filename_kernel_type; 00072 boost::array<uint8_t, 32> filename_kernel; 00073 00074 typedef boost::array<uint8_t, 32> _reserved_type; 00075 boost::array<uint8_t, 32> reserved; 00076 00077 enum { AUTOLOG_DISABLED = 0 }; 00078 enum { AUTOLOG_ENABLED = 1 }; 00079 enum { DISK_LOGGING_STOP = 0 }; 00080 enum { DISK_LOGGING_START = 1 }; 00081 00082 ROS_DEPRECATED uint32_t get_groups_size() const { return (uint32_t)groups.size(); } 00083 ROS_DEPRECATED void set_groups_size(uint32_t size) { groups.resize((size_t)size); } 00084 ROS_DEPRECATED void get_groups_vec(std::vector< ::applanix_msgs::OutputGroup_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::other > & vec) const { vec = this->groups; } 00085 ROS_DEPRECATED void set_groups_vec(const std::vector< ::applanix_msgs::OutputGroup_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::other > & vec) { this->groups = vec; } 00086 ROS_DEPRECATED uint32_t get_filename_kernel_size() const { return (uint32_t)filename_kernel.size(); } 00087 ROS_DEPRECATED uint32_t get_reserved_size() const { return (uint32_t)reserved.size(); } 00088 private: 00089 static const char* __s_getDataType_() { return "applanix_msgs/LoggingControl"; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00092 00093 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00094 00095 private: 00096 static const char* __s_getMD5Sum_() { return "c039312796bd7205fe681c6df276e3af"; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00099 00100 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00101 00102 private: 00103 static const char* __s_getMessageDefinition_() { return "# Msg 51, 52, 61\n\ 00104 uint16 transaction\n\ 00105 \n\ 00106 uint16 groups_count\n\ 00107 OutputGroup[] groups\n\ 00108 \n\ 00109 # 1, 2, 10, 20, 25, 50, 100, 200\n\ 00110 uint16 rate\n\ 00111 \n\ 00112 uint8 AUTOLOG_DISABLED=0\n\ 00113 uint8 AUTOLOG_ENABLED=1\n\ 00114 uint8 autolog\n\ 00115 \n\ 00116 uint8 DISK_LOGGING_STOP=0\n\ 00117 uint8 DISK_LOGGING_START=1\n\ 00118 uint8 disk_logging\n\ 00119 \n\ 00120 uint8[32] filename_kernel\n\ 00121 uint8[32] reserved\n\ 00122 \n\ 00123 ================================================================================\n\ 00124 MSG: applanix_msgs/OutputGroup\n\ 00125 uint16 group\n\ 00126 \n\ 00127 "; } 00128 public: 00129 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00130 00131 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00132 00133 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00134 { 00135 ros::serialization::OStream stream(write_ptr, 1000000000); 00136 ros::serialization::serialize(stream, transaction); 00137 ros::serialization::serialize(stream, groups_count); 00138 ros::serialization::serialize(stream, groups); 00139 ros::serialization::serialize(stream, rate); 00140 ros::serialization::serialize(stream, autolog); 00141 ros::serialization::serialize(stream, disk_logging); 00142 ros::serialization::serialize(stream, filename_kernel); 00143 ros::serialization::serialize(stream, reserved); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00148 { 00149 ros::serialization::IStream stream(read_ptr, 1000000000); 00150 ros::serialization::deserialize(stream, transaction); 00151 ros::serialization::deserialize(stream, groups_count); 00152 ros::serialization::deserialize(stream, groups); 00153 ros::serialization::deserialize(stream, rate); 00154 ros::serialization::deserialize(stream, autolog); 00155 ros::serialization::deserialize(stream, disk_logging); 00156 ros::serialization::deserialize(stream, filename_kernel); 00157 ros::serialization::deserialize(stream, reserved); 00158 return stream.getData(); 00159 } 00160 00161 ROS_DEPRECATED virtual uint32_t serializationLength() const 00162 { 00163 uint32_t size = 0; 00164 size += ros::serialization::serializationLength(transaction); 00165 size += ros::serialization::serializationLength(groups_count); 00166 size += ros::serialization::serializationLength(groups); 00167 size += ros::serialization::serializationLength(rate); 00168 size += ros::serialization::serializationLength(autolog); 00169 size += ros::serialization::serializationLength(disk_logging); 00170 size += ros::serialization::serializationLength(filename_kernel); 00171 size += ros::serialization::serializationLength(reserved); 00172 return size; 00173 } 00174 00175 typedef boost::shared_ptr< ::applanix_msgs::LoggingControl_<ContainerAllocator> > Ptr; 00176 typedef boost::shared_ptr< ::applanix_msgs::LoggingControl_<ContainerAllocator> const> ConstPtr; 00177 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00178 }; // struct LoggingControl 00179 typedef ::applanix_msgs::LoggingControl_<std::allocator<void> > LoggingControl; 00180 00181 typedef boost::shared_ptr< ::applanix_msgs::LoggingControl> LoggingControlPtr; 00182 typedef boost::shared_ptr< ::applanix_msgs::LoggingControl const> LoggingControlConstPtr; 00183 00184 00185 template<typename ContainerAllocator> 00186 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::LoggingControl_<ContainerAllocator> & v) 00187 { 00188 ros::message_operations::Printer< ::applanix_msgs::LoggingControl_<ContainerAllocator> >::stream(s, "", v); 00189 return s;} 00190 00191 } // namespace applanix_msgs 00192 00193 namespace ros 00194 { 00195 namespace message_traits 00196 { 00197 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::LoggingControl_<ContainerAllocator> > : public TrueType {}; 00198 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::LoggingControl_<ContainerAllocator> const> : public TrueType {}; 00199 template<class ContainerAllocator> 00200 struct MD5Sum< ::applanix_msgs::LoggingControl_<ContainerAllocator> > { 00201 static const char* value() 00202 { 00203 return "c039312796bd7205fe681c6df276e3af"; 00204 } 00205 00206 static const char* value(const ::applanix_msgs::LoggingControl_<ContainerAllocator> &) { return value(); } 00207 static const uint64_t static_value1 = 0xc039312796bd7205ULL; 00208 static const uint64_t static_value2 = 0xfe681c6df276e3afULL; 00209 }; 00210 00211 template<class ContainerAllocator> 00212 struct DataType< ::applanix_msgs::LoggingControl_<ContainerAllocator> > { 00213 static const char* value() 00214 { 00215 return "applanix_msgs/LoggingControl"; 00216 } 00217 00218 static const char* value(const ::applanix_msgs::LoggingControl_<ContainerAllocator> &) { return value(); } 00219 }; 00220 00221 template<class ContainerAllocator> 00222 struct Definition< ::applanix_msgs::LoggingControl_<ContainerAllocator> > { 00223 static const char* value() 00224 { 00225 return "# Msg 51, 52, 61\n\ 00226 uint16 transaction\n\ 00227 \n\ 00228 uint16 groups_count\n\ 00229 OutputGroup[] groups\n\ 00230 \n\ 00231 # 1, 2, 10, 20, 25, 50, 100, 200\n\ 00232 uint16 rate\n\ 00233 \n\ 00234 uint8 AUTOLOG_DISABLED=0\n\ 00235 uint8 AUTOLOG_ENABLED=1\n\ 00236 uint8 autolog\n\ 00237 \n\ 00238 uint8 DISK_LOGGING_STOP=0\n\ 00239 uint8 DISK_LOGGING_START=1\n\ 00240 uint8 disk_logging\n\ 00241 \n\ 00242 uint8[32] filename_kernel\n\ 00243 uint8[32] reserved\n\ 00244 \n\ 00245 ================================================================================\n\ 00246 MSG: applanix_msgs/OutputGroup\n\ 00247 uint16 group\n\ 00248 \n\ 00249 "; 00250 } 00251 00252 static const char* value(const ::applanix_msgs::LoggingControl_<ContainerAllocator> &) { return value(); } 00253 }; 00254 00255 } // namespace message_traits 00256 } // namespace ros 00257 00258 namespace ros 00259 { 00260 namespace serialization 00261 { 00262 00263 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::LoggingControl_<ContainerAllocator> > 00264 { 00265 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00266 { 00267 stream.next(m.transaction); 00268 stream.next(m.groups_count); 00269 stream.next(m.groups); 00270 stream.next(m.rate); 00271 stream.next(m.autolog); 00272 stream.next(m.disk_logging); 00273 stream.next(m.filename_kernel); 00274 stream.next(m.reserved); 00275 } 00276 00277 ROS_DECLARE_ALLINONE_SERIALIZER; 00278 }; // struct LoggingControl_ 00279 } // namespace serialization 00280 } // namespace ros 00281 00282 namespace ros 00283 { 00284 namespace message_operations 00285 { 00286 00287 template<class ContainerAllocator> 00288 struct Printer< ::applanix_msgs::LoggingControl_<ContainerAllocator> > 00289 { 00290 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::LoggingControl_<ContainerAllocator> & v) 00291 { 00292 s << indent << "transaction: "; 00293 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00294 s << indent << "groups_count: "; 00295 Printer<uint16_t>::stream(s, indent + " ", v.groups_count); 00296 s << indent << "groups[]" << std::endl; 00297 for (size_t i = 0; i < v.groups.size(); ++i) 00298 { 00299 s << indent << " groups[" << i << "]: "; 00300 s << std::endl; 00301 s << indent; 00302 Printer< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::stream(s, indent + " ", v.groups[i]); 00303 } 00304 s << indent << "rate: "; 00305 Printer<uint16_t>::stream(s, indent + " ", v.rate); 00306 s << indent << "autolog: "; 00307 Printer<uint8_t>::stream(s, indent + " ", v.autolog); 00308 s << indent << "disk_logging: "; 00309 Printer<uint8_t>::stream(s, indent + " ", v.disk_logging); 00310 s << indent << "filename_kernel[]" << std::endl; 00311 for (size_t i = 0; i < v.filename_kernel.size(); ++i) 00312 { 00313 s << indent << " filename_kernel[" << i << "]: "; 00314 Printer<uint8_t>::stream(s, indent + " ", v.filename_kernel[i]); 00315 } 00316 s << indent << "reserved[]" << std::endl; 00317 for (size_t i = 0; i < v.reserved.size(); ++i) 00318 { 00319 s << indent << " reserved[" << i << "]: "; 00320 Printer<uint8_t>::stream(s, indent + " ", v.reserved[i]); 00321 } 00322 } 00323 }; 00324 00325 00326 } // namespace message_operations 00327 } // namespace ros 00328 00329 #endif // APPLANIX_MSGS_MESSAGE_LOGGINGCONTROL_H 00330