! this method changes the value and the number of parameters for a specific object */
| 251 | this method changes the value and the number of parameters for a specific object |
| 252 | */ |
| 253 | ErrorCode EditValue(const std::string & name, const std::string & value, int param = 0) |
| 254 | { |
| 255 | if( !IsNameCorrect(name) ) |
| 256 | return err_incorrect_name; |
| 257 | |
| 258 | Iterator i = table.find(name); |
| 259 | |
| 260 | if( i == table.end() ) |
| 261 | return err_unknown_object; |
| 262 | |
| 263 | i->second.value = value; |
| 264 | i->second.param = param; |
| 265 | |
| 266 | return err_ok; |
| 267 | } |
| 268 | |
| 269 | |
| 270 | #ifndef TTMATH_DONT_USE_WCHAR |