00001
00002 #ifndef WPA_SUPPLICANT_NODE_MESSAGE_NETWORK_H
00003 #define WPA_SUPPLICANT_NODE_MESSAGE_NETWORK_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 #include "wpa_supplicant_node/NetworkParameter.h"
00014
00015 namespace wpa_supplicant_node
00016 {
00017 template <class ContainerAllocator>
00018 struct Network_ : public ros::Message
00019 {
00020 typedef Network_<ContainerAllocator> Type;
00021
00022 Network_()
00023 : network_id(0)
00024 , enabled(false)
00025 , parameters()
00026 {
00027 }
00028
00029 Network_(const ContainerAllocator& _alloc)
00030 : network_id(0)
00031 , enabled(false)
00032 , parameters(_alloc)
00033 {
00034 }
00035
00036 typedef int32_t _network_id_type;
00037 int32_t network_id;
00038
00039 typedef uint8_t _enabled_type;
00040 uint8_t enabled;
00041
00042 typedef std::vector< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> >::other > _parameters_type;
00043 std::vector< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> >::other > parameters;
00044
00045
00046 ROS_DEPRECATED uint32_t get_parameters_size() const { return (uint32_t)parameters.size(); }
00047 ROS_DEPRECATED void set_parameters_size(uint32_t size) { parameters.resize((size_t)size); }
00048 ROS_DEPRECATED void get_parameters_vec(std::vector< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> >::other > & vec) const { vec = this->parameters; }
00049 ROS_DEPRECATED void set_parameters_vec(const std::vector< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> >::other > & vec) { this->parameters = vec; }
00050 private:
00051 static const char* __s_getDataType_() { return "wpa_supplicant_node/Network"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00054
00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00056
00057 private:
00058 static const char* __s_getMD5Sum_() { return "daf87d6e9247d1f494a66a6eb210e85d"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getMessageDefinition_() { return "int32 network_id\n\
00066 bool enabled\n\
00067 NetworkParameter[] parameters\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: wpa_supplicant_node/NetworkParameter\n\
00071 string key\n\
00072 string value\n\
00073 \n\
00074 "; }
00075 public:
00076 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00077
00078 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00079
00080 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00081 {
00082 ros::serialization::OStream stream(write_ptr, 1000000000);
00083 ros::serialization::serialize(stream, network_id);
00084 ros::serialization::serialize(stream, enabled);
00085 ros::serialization::serialize(stream, parameters);
00086 return stream.getData();
00087 }
00088
00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00090 {
00091 ros::serialization::IStream stream(read_ptr, 1000000000);
00092 ros::serialization::deserialize(stream, network_id);
00093 ros::serialization::deserialize(stream, enabled);
00094 ros::serialization::deserialize(stream, parameters);
00095 return stream.getData();
00096 }
00097
00098 ROS_DEPRECATED virtual uint32_t serializationLength() const
00099 {
00100 uint32_t size = 0;
00101 size += ros::serialization::serializationLength(network_id);
00102 size += ros::serialization::serializationLength(enabled);
00103 size += ros::serialization::serializationLength(parameters);
00104 return size;
00105 }
00106
00107 typedef boost::shared_ptr< ::wpa_supplicant_node::Network_<ContainerAllocator> > Ptr;
00108 typedef boost::shared_ptr< ::wpa_supplicant_node::Network_<ContainerAllocator> const> ConstPtr;
00109 };
00110 typedef ::wpa_supplicant_node::Network_<std::allocator<void> > Network;
00111
00112 typedef boost::shared_ptr< ::wpa_supplicant_node::Network> NetworkPtr;
00113 typedef boost::shared_ptr< ::wpa_supplicant_node::Network const> NetworkConstPtr;
00114
00115
00116 template<typename ContainerAllocator>
00117 std::ostream& operator<<(std::ostream& s, const ::wpa_supplicant_node::Network_<ContainerAllocator> & v)
00118 {
00119 ros::message_operations::Printer< ::wpa_supplicant_node::Network_<ContainerAllocator> >::stream(s, "", v);
00120 return s;}
00121
00122 }
00123
00124 namespace ros
00125 {
00126 namespace message_traits
00127 {
00128 template<class ContainerAllocator>
00129 struct MD5Sum< ::wpa_supplicant_node::Network_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "daf87d6e9247d1f494a66a6eb210e85d";
00133 }
00134
00135 static const char* value(const ::wpa_supplicant_node::Network_<ContainerAllocator> &) { return value(); }
00136 static const uint64_t static_value1 = 0xdaf87d6e9247d1f4ULL;
00137 static const uint64_t static_value2 = 0x94a66a6eb210e85dULL;
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct DataType< ::wpa_supplicant_node::Network_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "wpa_supplicant_node/Network";
00145 }
00146
00147 static const char* value(const ::wpa_supplicant_node::Network_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 template<class ContainerAllocator>
00151 struct Definition< ::wpa_supplicant_node::Network_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "int32 network_id\n\
00155 bool enabled\n\
00156 NetworkParameter[] parameters\n\
00157 \n\
00158 ================================================================================\n\
00159 MSG: wpa_supplicant_node/NetworkParameter\n\
00160 string key\n\
00161 string value\n\
00162 \n\
00163 ";
00164 }
00165
00166 static const char* value(const ::wpa_supplicant_node::Network_<ContainerAllocator> &) { return value(); }
00167 };
00168
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace serialization
00175 {
00176
00177 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::Network_<ContainerAllocator> >
00178 {
00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00180 {
00181 stream.next(m.network_id);
00182 stream.next(m.enabled);
00183 stream.next(m.parameters);
00184 }
00185
00186 ROS_DECLARE_ALLINONE_SERIALIZER;
00187 };
00188 }
00189 }
00190
00191 namespace ros
00192 {
00193 namespace message_operations
00194 {
00195
00196 template<class ContainerAllocator>
00197 struct Printer< ::wpa_supplicant_node::Network_<ContainerAllocator> >
00198 {
00199 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wpa_supplicant_node::Network_<ContainerAllocator> & v)
00200 {
00201 s << indent << "network_id: ";
00202 Printer<int32_t>::stream(s, indent + " ", v.network_id);
00203 s << indent << "enabled: ";
00204 Printer<uint8_t>::stream(s, indent + " ", v.enabled);
00205 s << indent << "parameters[]" << std::endl;
00206 for (size_t i = 0; i < v.parameters.size(); ++i)
00207 {
00208 s << indent << " parameters[" << i << "]: ";
00209 s << std::endl;
00210 s << indent;
00211 Printer< ::wpa_supplicant_node::NetworkParameter_<ContainerAllocator> >::stream(s, indent + " ", v.parameters[i]);
00212 }
00213 }
00214 };
00215
00216
00217 }
00218 }
00219
00220 #endif // WPA_SUPPLICANT_NODE_MESSAGE_NETWORK_H
00221