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