Rev 1642 | Rev 1766 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1642 | Rev 1646 | ||
|---|---|---|---|
| Line 199... | Line 199... | ||
| 199 | } |
199 | } |
| 200 | } |
200 | } |
| 201 | 201 | ||
| 202 | std::string Protocol::LookupModuleName(unsigned int module_id) |
202 | std::string Protocol::LookupModuleName(unsigned int module_id) |
| 203 | { |
203 | { |
| 204 | if (module_id == 0) |
- | |
| 205 | { |
- | |
| 206 | return ""; |
- | |
| 207 | } |
- | |
| 208 | - | ||
| 209 | try |
204 | try |
| 210 | { |
205 | { |
| 211 | return this->root_node_.FindChild("modules").SelectChild("id", boost::lexical_cast<std::string>(module_id)).GetAttributeValue("name"); |
206 | return this->root_node_.FindChild("modules").SelectChild("id", boost::lexical_cast<std::string>(module_id)).GetAttributeValue("name"); |
| 212 | } |
207 | } |
| 213 | catch (std::runtime_error& e) |
208 | catch (std::runtime_error& e) |