! this method gets the value of a specific object */
| 387 | this method gets the value of a specific object |
| 388 | */ |
| 389 | ErrorCode GetValue(const std::string & name, std::string & value) const |
| 390 | { |
| 391 | if( !IsNameCorrect(name) ) |
| 392 | return err_incorrect_name; |
| 393 | |
| 394 | CIterator i = table.find(name); |
| 395 | |
| 396 | if( i == table.end() ) |
| 397 | { |
| 398 | value.clear(); |
| 399 | return err_unknown_object; |
| 400 | } |
| 401 | |
| 402 | value = i->second.value; |
| 403 | |
| 404 | return err_ok; |
| 405 | } |
| 406 | |
| 407 | |
| 408 | #ifndef TTMATH_DONT_USE_WCHAR |