| 186 | } |
| 187 | |
| 188 | const session_string* session::get_buf(const char* name) |
| 189 | { |
| 190 | attrs_clear(attrs_); |
| 191 | |
| 192 | if (!get_attrs(attrs_)) { |
| 193 | return NULL; |
| 194 | } |
| 195 | |
| 196 | std::map<string, session_string>::const_iterator cit = attrs_.find(name); |
| 197 | if (cit == attrs_.end()) { |
| 198 | return NULL; |
| 199 | } |
| 200 | return &cit->second; |
| 201 | } |
| 202 | |
| 203 | bool session::get_attrs(const std::vector<string>& names, |
| 204 | std::vector<session_string>& values) |
no test coverage detected