#include <variantimp.hpp>
ESM::VariantFloatData::VariantFloatData |
( |
const VariantDataBase * |
data = 0 | ) |
|
Calling the constructor with an incompatible data type will result in a silent default initialisation.
float ESM::VariantFloatData::getFloat |
( |
bool |
default_ = false | ) |
const |
|
virtual |
Will throw an exception, if value can not be represented as a float value.
- Parameters
-
default_ | Return a default value instead of throwing an exception. |
Reimplemented from ESM::VariantDataBase.
int ESM::VariantFloatData::getInteger |
( |
bool |
default_ = false | ) |
const |
|
virtual |
Will throw an exception, if value can not be represented as an integer (implicit casting of float values is permitted).
- Parameters
-
default_ | Return a default value instead of throwing an exception. |
Reimplemented from ESM::VariantDataBase.
If the (C++) type of value does not match the type of *this, an exception is thrown.
Implements ESM::VariantDataBase.
void ESM::VariantFloatData::setFloat |
( |
float |
value | ) |
|
|
virtual |
Will throw an exception, if type is not compatible with float.
Reimplemented from ESM::VariantDataBase.
void ESM::VariantFloatData::setInteger |
( |
int |
value | ) |
|
|
virtual |
Will throw an exception, if type is not compatible with integer.
Reimplemented from ESM::VariantDataBase.
float ESM::VariantFloatData::mValue |
|
private |
The documentation for this class was generated from the following files: