00001
00002 #ifndef WPA_SUPPLICANT_NODE_MESSAGE_NETWORKPARAMETER_H
00003 #define WPA_SUPPLICANT_NODE_MESSAGE_NETWORKPARAMETER_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
00014 namespace wpa_supplicant_node
00015 {
00016 template <class ContainerAllocator>
00017 struct NetworkParameter_ : public ros::Message
00018 {
00019 typedef NetworkParameter_<ContainerAllocator> Type;
00020
00021 NetworkParameter_()
00022 : key()
00023 , value()
00024 {
00025 }
00026
00027 NetworkParameter_(const ContainerAllocator& _alloc)
00028 : key(_alloc)
00029 , value(_alloc)
00030 {
00031 }
00032
00033 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _key_type;
00034 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > key;
00035
00036 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _value_type;
00037 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > value;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "wpa_supplicant_node/NetworkParameter"; }
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 "cf57fdc6617a881a88c16e768132149c"; }
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 "string key\n\
00056 string value\n\
00057 \n\
00058 "; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00061
00062 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00063
00064 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00065 {
00066 ros::serialization::OStream stream(write_ptr, 1000000000);
00067 ros::serialization::serialize(stream, key);
00068 ros::serialization::serialize(stream, value);
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, key);
00076 ros::serialization::deserialize(stream, value);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint32_t serializationLength() const
00081 {
00082 uint32_t size = 0;
00083 size += ros::serialization::serializationLength(key);
00084 size += ros::serialization::serializationLength(value);
00085 return size;
00086 }
00087
00088 typedef boost::shared_ptr< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> > Ptr;
00089 typedef boost::shared_ptr< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> const> ConstPtr;
00090 };
00091 typedef ::wpa_supplicant_node::NetworkParameter_<std::allocator<void> > NetworkParameter;
00092
00093 typedef boost::shared_ptr< ::wpa_supplicant_node::NetworkParameter> NetworkParameterPtr;
00094 typedef boost::shared_ptr< ::wpa_supplicant_node::NetworkParameter const> NetworkParameterConstPtr;
00095
00096
00097 template<typename ContainerAllocator>
00098 std::ostream& operator<<(std::ostream& s, const ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> & v)
00099 {
00100 ros::message_operations::Printer< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> >::stream(s, "", v);
00101 return s;}
00102
00103 }
00104
00105 namespace ros
00106 {
00107 namespace message_traits
00108 {
00109 template<class ContainerAllocator>
00110 struct MD5Sum< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "cf57fdc6617a881a88c16e768132149c";
00114 }
00115
00116 static const char* value(const ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> &) { return value(); }
00117 static const uint64_t static_value1 = 0xcf57fdc6617a881aULL;
00118 static const uint64_t static_value2 = 0x88c16e768132149cULL;
00119 };
00120
00121 template<class ContainerAllocator>
00122 struct DataType< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> > {
00123 static const char* value()
00124 {
00125 return "wpa_supplicant_node/NetworkParameter";
00126 }
00127
00128 static const char* value(const ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct Definition< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "string key\n\
00136 string value\n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 }
00145 }
00146
00147 namespace ros
00148 {
00149 namespace serialization
00150 {
00151
00152 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> >
00153 {
00154 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00155 {
00156 stream.next(m.key);
00157 stream.next(m.value);
00158 }
00159
00160 ROS_DECLARE_ALLINONE_SERIALIZER;
00161 };
00162 }
00163 }
00164
00165 namespace ros
00166 {
00167 namespace message_operations
00168 {
00169
00170 template<class ContainerAllocator>
00171 struct Printer< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> >
00172 {
00173 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> & v)
00174 {
00175 s << indent << "key: ";
00176 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.key);
00177 s << indent << "value: ";
00178 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.value);
00179 }
00180 };
00181
00182
00183 }
00184 }
00185
00186 #endif // WPA_SUPPLICANT_NODE_MESSAGE_NETWORKPARAMETER_H
00187