$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/SecurityProperties.msg */ 00002 #ifndef WPA_SUPPLICANT_NODE_MESSAGE_SECURITYPROPERTIES_H 00003 #define WPA_SUPPLICANT_NODE_MESSAGE_SECURITYPROPERTIES_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 wpa_supplicant_node 00019 { 00020 template <class ContainerAllocator> 00021 struct SecurityProperties_ { 00022 typedef SecurityProperties_<ContainerAllocator> Type; 00023 00024 SecurityProperties_() 00025 : key_mgmt() 00026 , group() 00027 , pairwise() 00028 { 00029 } 00030 00031 SecurityProperties_(const ContainerAllocator& _alloc) 00032 : key_mgmt(_alloc) 00033 , group(_alloc) 00034 , pairwise(_alloc) 00035 { 00036 } 00037 00038 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _key_mgmt_type; 00039 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > key_mgmt; 00040 00041 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _group_type; 00042 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > group; 00043 00044 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _pairwise_type; 00045 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > pairwise; 00046 00047 00048 ROS_DEPRECATED uint32_t get_key_mgmt_size() const { return (uint32_t)key_mgmt.size(); } 00049 ROS_DEPRECATED void set_key_mgmt_size(uint32_t size) { key_mgmt.resize((size_t)size); } 00050 ROS_DEPRECATED void get_key_mgmt_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->key_mgmt; } 00051 ROS_DEPRECATED void set_key_mgmt_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->key_mgmt = vec; } 00052 ROS_DEPRECATED uint32_t get_group_size() const { return (uint32_t)group.size(); } 00053 ROS_DEPRECATED void set_group_size(uint32_t size) { group.resize((size_t)size); } 00054 ROS_DEPRECATED void get_group_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->group; } 00055 ROS_DEPRECATED void set_group_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->group = vec; } 00056 ROS_DEPRECATED uint32_t get_pairwise_size() const { return (uint32_t)pairwise.size(); } 00057 ROS_DEPRECATED void set_pairwise_size(uint32_t size) { pairwise.resize((size_t)size); } 00058 ROS_DEPRECATED void get_pairwise_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->pairwise; } 00059 ROS_DEPRECATED void set_pairwise_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->pairwise = vec; } 00060 private: 00061 static const char* __s_getDataType_() { return "wpa_supplicant_node/SecurityProperties"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00064 00065 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00066 00067 private: 00068 static const char* __s_getMD5Sum_() { return "3732b944c75c0a47f2353f72e585615d"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00071 00072 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00073 00074 private: 00075 static const char* __s_getMessageDefinition_() { return "string[] key_mgmt\n\ 00076 string[] group\n\ 00077 string[] pairwise\n\ 00078 \n\ 00079 "; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00082 00083 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00084 00085 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00086 { 00087 ros::serialization::OStream stream(write_ptr, 1000000000); 00088 ros::serialization::serialize(stream, key_mgmt); 00089 ros::serialization::serialize(stream, group); 00090 ros::serialization::serialize(stream, pairwise); 00091 return stream.getData(); 00092 } 00093 00094 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00095 { 00096 ros::serialization::IStream stream(read_ptr, 1000000000); 00097 ros::serialization::deserialize(stream, key_mgmt); 00098 ros::serialization::deserialize(stream, group); 00099 ros::serialization::deserialize(stream, pairwise); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint32_t serializationLength() const 00104 { 00105 uint32_t size = 0; 00106 size += ros::serialization::serializationLength(key_mgmt); 00107 size += ros::serialization::serializationLength(group); 00108 size += ros::serialization::serializationLength(pairwise); 00109 return size; 00110 } 00111 00112 typedef boost::shared_ptr< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> > Ptr; 00113 typedef boost::shared_ptr< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> const> ConstPtr; 00114 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00115 }; // struct SecurityProperties 00116 typedef ::wpa_supplicant_node::SecurityProperties_<std::allocator<void> > SecurityProperties; 00117 00118 typedef boost::shared_ptr< ::wpa_supplicant_node::SecurityProperties> SecurityPropertiesPtr; 00119 typedef boost::shared_ptr< ::wpa_supplicant_node::SecurityProperties const> SecurityPropertiesConstPtr; 00120 00121 00122 template<typename ContainerAllocator> 00123 std::ostream& operator<<(std::ostream& s, const ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> & v) 00124 { 00125 ros::message_operations::Printer< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> >::stream(s, "", v); 00126 return s;} 00127 00128 } // namespace wpa_supplicant_node 00129 00130 namespace ros 00131 { 00132 namespace message_traits 00133 { 00134 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> > : public TrueType {}; 00135 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> const> : public TrueType {}; 00136 template<class ContainerAllocator> 00137 struct MD5Sum< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "3732b944c75c0a47f2353f72e585615d"; 00141 } 00142 00143 static const char* value(const ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> &) { return value(); } 00144 static const uint64_t static_value1 = 0x3732b944c75c0a47ULL; 00145 static const uint64_t static_value2 = 0xf2353f72e585615dULL; 00146 }; 00147 00148 template<class ContainerAllocator> 00149 struct DataType< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "wpa_supplicant_node/SecurityProperties"; 00153 } 00154 00155 static const char* value(const ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> &) { return value(); } 00156 }; 00157 00158 template<class ContainerAllocator> 00159 struct Definition< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "string[] key_mgmt\n\ 00163 string[] group\n\ 00164 string[] pairwise\n\ 00165 \n\ 00166 "; 00167 } 00168 00169 static const char* value(const ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> &) { return value(); } 00170 }; 00171 00172 } // namespace message_traits 00173 } // namespace ros 00174 00175 namespace ros 00176 { 00177 namespace serialization 00178 { 00179 00180 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> > 00181 { 00182 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00183 { 00184 stream.next(m.key_mgmt); 00185 stream.next(m.group); 00186 stream.next(m.pairwise); 00187 } 00188 00189 ROS_DECLARE_ALLINONE_SERIALIZER; 00190 }; // struct SecurityProperties_ 00191 } // namespace serialization 00192 } // namespace ros 00193 00194 namespace ros 00195 { 00196 namespace message_operations 00197 { 00198 00199 template<class ContainerAllocator> 00200 struct Printer< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> > 00201 { 00202 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> & v) 00203 { 00204 s << indent << "key_mgmt[]" << std::endl; 00205 for (size_t i = 0; i < v.key_mgmt.size(); ++i) 00206 { 00207 s << indent << " key_mgmt[" << i << "]: "; 00208 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.key_mgmt[i]); 00209 } 00210 s << indent << "group[]" << std::endl; 00211 for (size_t i = 0; i < v.group.size(); ++i) 00212 { 00213 s << indent << " group[" << i << "]: "; 00214 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.group[i]); 00215 } 00216 s << indent << "pairwise[]" << std::endl; 00217 for (size_t i = 0; i < v.pairwise.size(); ++i) 00218 { 00219 s << indent << " pairwise[" << i << "]: "; 00220 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.pairwise[i]); 00221 } 00222 } 00223 }; 00224 00225 00226 } // namespace message_operations 00227 } // namespace ros 00228 00229 #endif // WPA_SUPPLICANT_NODE_MESSAGE_SECURITYPROPERTIES_H 00230