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