$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-bosch_drivers/doc_stacks/2013-03-03_11-06-04.980567/bosch_drivers/gumstix_memwrite_bma180/msg/writermsg.msg */ 00002 #ifndef GUMSTIX_MEMWRITE_BMA180_MESSAGE_WRITERMSG_H 00003 #define GUMSTIX_MEMWRITE_BMA180_MESSAGE_WRITERMSG_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 00018 namespace gumstix_memwrite_bma180 00019 { 00020 template <class ContainerAllocator> 00021 struct writermsg_ { 00022 typedef writermsg_<ContainerAllocator> Type; 00023 00024 writermsg_() 00025 : written(false) 00026 { 00027 } 00028 00029 writermsg_(const ContainerAllocator& _alloc) 00030 : written(false) 00031 { 00032 } 00033 00034 typedef uint8_t _written_type; 00035 uint8_t written; 00036 00037 00038 private: 00039 static const char* __s_getDataType_() { return "gumstix_memwrite_bma180/writermsg"; } 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 "b709114f9799cee160e24092334f8514"; } 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 "bool written\n\ 00054 \n\ 00055 "; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00058 00059 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00060 00061 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00062 { 00063 ros::serialization::OStream stream(write_ptr, 1000000000); 00064 ros::serialization::serialize(stream, written); 00065 return stream.getData(); 00066 } 00067 00068 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00069 { 00070 ros::serialization::IStream stream(read_ptr, 1000000000); 00071 ros::serialization::deserialize(stream, written); 00072 return stream.getData(); 00073 } 00074 00075 ROS_DEPRECATED virtual uint32_t serializationLength() const 00076 { 00077 uint32_t size = 0; 00078 size += ros::serialization::serializationLength(written); 00079 return size; 00080 } 00081 00082 typedef boost::shared_ptr< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> > Ptr; 00083 typedef boost::shared_ptr< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> const> ConstPtr; 00084 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00085 }; // struct writermsg 00086 typedef ::gumstix_memwrite_bma180::writermsg_<std::allocator<void> > writermsg; 00087 00088 typedef boost::shared_ptr< ::gumstix_memwrite_bma180::writermsg> writermsgPtr; 00089 typedef boost::shared_ptr< ::gumstix_memwrite_bma180::writermsg const> writermsgConstPtr; 00090 00091 00092 template<typename ContainerAllocator> 00093 std::ostream& operator<<(std::ostream& s, const ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> & v) 00094 { 00095 ros::message_operations::Printer< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> >::stream(s, "", v); 00096 return s;} 00097 00098 } // namespace gumstix_memwrite_bma180 00099 00100 namespace ros 00101 { 00102 namespace message_traits 00103 { 00104 template<class ContainerAllocator> struct IsMessage< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> > : public TrueType {}; 00105 template<class ContainerAllocator> struct IsMessage< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> const> : public TrueType {}; 00106 template<class ContainerAllocator> 00107 struct MD5Sum< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> > { 00108 static const char* value() 00109 { 00110 return "b709114f9799cee160e24092334f8514"; 00111 } 00112 00113 static const char* value(const ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> &) { return value(); } 00114 static const uint64_t static_value1 = 0xb709114f9799cee1ULL; 00115 static const uint64_t static_value2 = 0x60e24092334f8514ULL; 00116 }; 00117 00118 template<class ContainerAllocator> 00119 struct DataType< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> > { 00120 static const char* value() 00121 { 00122 return "gumstix_memwrite_bma180/writermsg"; 00123 } 00124 00125 static const char* value(const ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> &) { return value(); } 00126 }; 00127 00128 template<class ContainerAllocator> 00129 struct Definition< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> > { 00130 static const char* value() 00131 { 00132 return "bool written\n\ 00133 \n\ 00134 "; 00135 } 00136 00137 static const char* value(const ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> &) { return value(); } 00138 }; 00139 00140 template<class ContainerAllocator> struct IsFixedSize< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> > : public TrueType {}; 00141 } // namespace message_traits 00142 } // namespace ros 00143 00144 namespace ros 00145 { 00146 namespace serialization 00147 { 00148 00149 template<class ContainerAllocator> struct Serializer< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> > 00150 { 00151 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00152 { 00153 stream.next(m.written); 00154 } 00155 00156 ROS_DECLARE_ALLINONE_SERIALIZER; 00157 }; // struct writermsg_ 00158 } // namespace serialization 00159 } // namespace ros 00160 00161 namespace ros 00162 { 00163 namespace message_operations 00164 { 00165 00166 template<class ContainerAllocator> 00167 struct Printer< ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> > 00168 { 00169 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gumstix_memwrite_bma180::writermsg_<ContainerAllocator> & v) 00170 { 00171 s << indent << "written: "; 00172 Printer<uint8_t>::stream(s, indent + " ", v.written); 00173 } 00174 }; 00175 00176 00177 } // namespace message_operations 00178 } // namespace ros 00179 00180 #endif // GUMSTIX_MEMWRITE_BMA180_MESSAGE_WRITERMSG_H 00181