! this method gets the value and the number of parameters of a specific object */
| 476 | of a specific object |
| 477 | */ |
| 478 | ErrorCode GetValueAndParam(const std::string & name, std::string & value, int * param) const |
| 479 | { |
| 480 | if( !IsNameCorrect(name) ) |
| 481 | return err_incorrect_name; |
| 482 | |
| 483 | CIterator i = table.find(name); |
| 484 | |
| 485 | if( i == table.end() ) |
| 486 | { |
| 487 | value.clear(); |
| 488 | *param = 0; |
| 489 | return err_unknown_object; |
| 490 | } |
| 491 | |
| 492 | value = i->second.value; |
| 493 | *param = i->second.param; |
| 494 | |
| 495 | return err_ok; |
| 496 | } |
| 497 | |
| 498 | |
| 499 | #ifndef TTMATH_DONT_USE_WCHAR |