| 118 | |
| 119 | template<typename T> |
| 120 | T NumericParameter<T>::getNumericValue() const |
| 121 | { |
| 122 | const TypedData<T> *v = runTimeCast<const TypedData<T> >( getValidatedValue() ); |
| 123 | if (!v) |
| 124 | { |
| 125 | throw Exception( string( "Value is not an instance of \"" ) + ObjectType::staticTypeName() + "\"" ); |
| 126 | } |
| 127 | return v->readable(); |
| 128 | } |
| 129 | |
| 130 | template<typename T> |
| 131 | void NumericParameter<T>::setNumericValue( T value ) |