|
OpenMW
|
#include <variantimp.hpp>
Public Member Functions | |
| VariantStringData (const VariantDataBase *data=0) | |
| virtual VariantDataBase * | clone () const |
| virtual std::string | getString (bool default_=false) const |
| virtual void | setString (const std::string &value) |
| Will throw an exception, if type is not compatible with string. More... | |
| virtual void | read (ESMReader &esm, Variant::Format format, VarType type) |
| If type is not supported by format, an exception is thrown via ESMReader::fail. More... | |
| virtual void | write (ESMWriter &esm, Variant::Format format, VarType type) const |
| If type is not supported by format, an exception is thrown. More... | |
| virtual bool | isEqual (const VariantDataBase &value) const |
| If the (C++) type of value does not match the type of *this, an exception is thrown. More... | |
Public Member Functions inherited from ESM::VariantDataBase | |
| virtual | ~VariantDataBase () |
| virtual int | getInteger (bool default_=false) const |
| virtual float | getFloat (bool default_=false) const |
| virtual void | setInteger (int value) |
| virtual void | setFloat (float value) |
Private Attributes | |
| std::string | mValue |
| ESM::VariantStringData::VariantStringData | ( | const VariantDataBase * | data = 0 | ) |
Calling the constructor with an incompatible data type will result in a silent default initialisation.
|
virtual |
Implements ESM::VariantDataBase.
|
virtual |
Will throw an exception, if value can not be represented as a string.
| default_ | Return a default value instead of throwing an exception. |
Reimplemented from ESM::VariantDataBase.
|
virtual |
If the (C++) type of value does not match the type of *this, an exception is thrown.
Implements ESM::VariantDataBase.
|
virtual |
If type is not supported by format, an exception is thrown via ESMReader::fail.
Implements ESM::VariantDataBase.
|
virtual |
Will throw an exception, if type is not compatible with string.
Reimplemented from ESM::VariantDataBase.
|
virtual |
If type is not supported by format, an exception is thrown.
Implements ESM::VariantDataBase.
|
private |
1.8.6