Go to the documentation of this file.00001
00002 #ifndef TELEKYB_MSGS_MESSAGE_MKVALUE_H
00003 #define TELEKYB_MSGS_MESSAGE_MKVALUE_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 telekyb_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct MKValue_ {
00022 typedef MKValue_<ContainerAllocator> Type;
00023
00024 MKValue_()
00025 : name()
00026 , stamp()
00027 , id(0)
00028 , value(0)
00029 {
00030 }
00031
00032 MKValue_(const ContainerAllocator& _alloc)
00033 : name(_alloc)
00034 , stamp()
00035 , id(0)
00036 , value(0)
00037 {
00038 }
00039
00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00042
00043 typedef ros::Time _stamp_type;
00044 ros::Time stamp;
00045
00046 typedef int16_t _id_type;
00047 int16_t id;
00048
00049 typedef int16_t _value_type;
00050 int16_t value;
00051
00052
00053 typedef boost::shared_ptr< ::telekyb_msgs::MKValue_<ContainerAllocator> > Ptr;
00054 typedef boost::shared_ptr< ::telekyb_msgs::MKValue_<ContainerAllocator> const> ConstPtr;
00055 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 };
00057 typedef ::telekyb_msgs::MKValue_<std::allocator<void> > MKValue;
00058
00059 typedef boost::shared_ptr< ::telekyb_msgs::MKValue> MKValuePtr;
00060 typedef boost::shared_ptr< ::telekyb_msgs::MKValue const> MKValueConstPtr;
00061
00062
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const ::telekyb_msgs::MKValue_<ContainerAllocator> & v)
00065 {
00066 ros::message_operations::Printer< ::telekyb_msgs::MKValue_<ContainerAllocator> >::stream(s, "", v);
00067 return s;}
00068
00069 }
00070
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::MKValue_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::MKValue_<ContainerAllocator> const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::telekyb_msgs::MKValue_<ContainerAllocator> > {
00079 static const char* value()
00080 {
00081 return "24bb7f40c63825102e156502fdb934eb";
00082 }
00083
00084 static const char* value(const ::telekyb_msgs::MKValue_<ContainerAllocator> &) { return value(); }
00085 static const uint64_t static_value1 = 0x24bb7f40c6382510ULL;
00086 static const uint64_t static_value2 = 0x2e156502fdb934ebULL;
00087 };
00088
00089 template<class ContainerAllocator>
00090 struct DataType< ::telekyb_msgs::MKValue_<ContainerAllocator> > {
00091 static const char* value()
00092 {
00093 return "telekyb_msgs/MKValue";
00094 }
00095
00096 static const char* value(const ::telekyb_msgs::MKValue_<ContainerAllocator> &) { return value(); }
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct Definition< ::telekyb_msgs::MKValue_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "#\n\
00104 # Copyright 2011 Antonio Franchi and Martin Riedel \n\
00105 #\n\
00106 # This file is part of TeleKyb.\n\
00107 #\n\
00108 # TeleKyb is free software: you can redistribute it and/or modify\n\
00109 # it under the terms of the GNU General Public License as published by\n\
00110 # the Free Software Foundation, either version 3 of the License, or\n\
00111 # (at your option) any later version.\n\
00112 #\n\
00113 # TeleKyb is distributed in the hope that it will be useful,\n\
00114 # but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
00115 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
00116 # GNU General Public License for more details.\n\
00117 #\n\
00118 # You should have received a copy of the GNU General Public License\n\
00119 # along with TeleKyb. If not, see <http://www.gnu.org/licenses/>.\n\
00120 \n\
00121 string name\n\
00122 time stamp\n\
00123 int16 id\n\
00124 int16 value\n\
00125 \n\
00126 #\n\
00127 #\n\
00128 ";
00129 }
00130
00131 static const char* value(const ::telekyb_msgs::MKValue_<ContainerAllocator> &) { return value(); }
00132 };
00133
00134 }
00135 }
00136
00137 namespace ros
00138 {
00139 namespace serialization
00140 {
00141
00142 template<class ContainerAllocator> struct Serializer< ::telekyb_msgs::MKValue_<ContainerAllocator> >
00143 {
00144 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00145 {
00146 stream.next(m.name);
00147 stream.next(m.stamp);
00148 stream.next(m.id);
00149 stream.next(m.value);
00150 }
00151
00152 ROS_DECLARE_ALLINONE_SERIALIZER;
00153 };
00154 }
00155 }
00156
00157 namespace ros
00158 {
00159 namespace message_operations
00160 {
00161
00162 template<class ContainerAllocator>
00163 struct Printer< ::telekyb_msgs::MKValue_<ContainerAllocator> >
00164 {
00165 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::telekyb_msgs::MKValue_<ContainerAllocator> & v)
00166 {
00167 s << indent << "name: ";
00168 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00169 s << indent << "stamp: ";
00170 Printer<ros::Time>::stream(s, indent + " ", v.stamp);
00171 s << indent << "id: ";
00172 Printer<int16_t>::stream(s, indent + " ", v.id);
00173 s << indent << "value: ";
00174 Printer<int16_t>::stream(s, indent + " ", v.value);
00175 }
00176 };
00177
00178
00179 }
00180 }
00181
00182 #endif // TELEKYB_MSGS_MESSAGE_MKVALUE_H
00183