$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-remote_lab/doc_stacks/2013-03-03_11-54-58.406785/remote_lab/robot_booking/msg/Keys.msg */ 00002 #ifndef ROBOT_BOOKING_MESSAGE_KEYS_H 00003 #define ROBOT_BOOKING_MESSAGE_KEYS_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 robot_booking 00019 { 00020 template <class ContainerAllocator> 00021 struct Keys_ { 00022 typedef Keys_<ContainerAllocator> Type; 00023 00024 Keys_() 00025 : keys() 00026 { 00027 } 00028 00029 Keys_(const ContainerAllocator& _alloc) 00030 : keys(_alloc) 00031 { 00032 } 00033 00034 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _keys_type; 00035 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > keys; 00036 00037 00038 ROS_DEPRECATED uint32_t get_keys_size() const { return (uint32_t)keys.size(); } 00039 ROS_DEPRECATED void set_keys_size(uint32_t size) { keys.resize((size_t)size); } 00040 ROS_DEPRECATED void get_keys_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->keys; } 00041 ROS_DEPRECATED void set_keys_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->keys = vec; } 00042 private: 00043 static const char* __s_getDataType_() { return "robot_booking/Keys"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "53fdee04e64192b36cb690fc55ae51f1"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getMessageDefinition_() { return "bool[] keys\n\ 00058 \n\ 00059 "; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00062 00063 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00064 00065 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00066 { 00067 ros::serialization::OStream stream(write_ptr, 1000000000); 00068 ros::serialization::serialize(stream, keys); 00069 return stream.getData(); 00070 } 00071 00072 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00073 { 00074 ros::serialization::IStream stream(read_ptr, 1000000000); 00075 ros::serialization::deserialize(stream, keys); 00076 return stream.getData(); 00077 } 00078 00079 ROS_DEPRECATED virtual uint32_t serializationLength() const 00080 { 00081 uint32_t size = 0; 00082 size += ros::serialization::serializationLength(keys); 00083 return size; 00084 } 00085 00086 typedef boost::shared_ptr< ::robot_booking::Keys_<ContainerAllocator> > Ptr; 00087 typedef boost::shared_ptr< ::robot_booking::Keys_<ContainerAllocator> const> ConstPtr; 00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00089 }; // struct Keys 00090 typedef ::robot_booking::Keys_<std::allocator<void> > Keys; 00091 00092 typedef boost::shared_ptr< ::robot_booking::Keys> KeysPtr; 00093 typedef boost::shared_ptr< ::robot_booking::Keys const> KeysConstPtr; 00094 00095 00096 template<typename ContainerAllocator> 00097 std::ostream& operator<<(std::ostream& s, const ::robot_booking::Keys_<ContainerAllocator> & v) 00098 { 00099 ros::message_operations::Printer< ::robot_booking::Keys_<ContainerAllocator> >::stream(s, "", v); 00100 return s;} 00101 00102 } // namespace robot_booking 00103 00104 namespace ros 00105 { 00106 namespace message_traits 00107 { 00108 template<class ContainerAllocator> struct IsMessage< ::robot_booking::Keys_<ContainerAllocator> > : public TrueType {}; 00109 template<class ContainerAllocator> struct IsMessage< ::robot_booking::Keys_<ContainerAllocator> const> : public TrueType {}; 00110 template<class ContainerAllocator> 00111 struct MD5Sum< ::robot_booking::Keys_<ContainerAllocator> > { 00112 static const char* value() 00113 { 00114 return "53fdee04e64192b36cb690fc55ae51f1"; 00115 } 00116 00117 static const char* value(const ::robot_booking::Keys_<ContainerAllocator> &) { return value(); } 00118 static const uint64_t static_value1 = 0x53fdee04e64192b3ULL; 00119 static const uint64_t static_value2 = 0x6cb690fc55ae51f1ULL; 00120 }; 00121 00122 template<class ContainerAllocator> 00123 struct DataType< ::robot_booking::Keys_<ContainerAllocator> > { 00124 static const char* value() 00125 { 00126 return "robot_booking/Keys"; 00127 } 00128 00129 static const char* value(const ::robot_booking::Keys_<ContainerAllocator> &) { return value(); } 00130 }; 00131 00132 template<class ContainerAllocator> 00133 struct Definition< ::robot_booking::Keys_<ContainerAllocator> > { 00134 static const char* value() 00135 { 00136 return "bool[] keys\n\ 00137 \n\ 00138 "; 00139 } 00140 00141 static const char* value(const ::robot_booking::Keys_<ContainerAllocator> &) { return value(); } 00142 }; 00143 00144 } // namespace message_traits 00145 } // namespace ros 00146 00147 namespace ros 00148 { 00149 namespace serialization 00150 { 00151 00152 template<class ContainerAllocator> struct Serializer< ::robot_booking::Keys_<ContainerAllocator> > 00153 { 00154 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00155 { 00156 stream.next(m.keys); 00157 } 00158 00159 ROS_DECLARE_ALLINONE_SERIALIZER; 00160 }; // struct Keys_ 00161 } // namespace serialization 00162 } // namespace ros 00163 00164 namespace ros 00165 { 00166 namespace message_operations 00167 { 00168 00169 template<class ContainerAllocator> 00170 struct Printer< ::robot_booking::Keys_<ContainerAllocator> > 00171 { 00172 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::robot_booking::Keys_<ContainerAllocator> & v) 00173 { 00174 s << indent << "keys[]" << std::endl; 00175 for (size_t i = 0; i < v.keys.size(); ++i) 00176 { 00177 s << indent << " keys[" << i << "]: "; 00178 Printer<uint8_t>::stream(s, indent + " ", v.keys[i]); 00179 } 00180 } 00181 }; 00182 00183 00184 } // namespace message_operations 00185 } // namespace ros 00186 00187 #endif // ROBOT_BOOKING_MESSAGE_KEYS_H 00188