#include <variant.hpp>
Enumerator |
---|
Format_Global |
|
Format_Gmst |
|
Format_Info |
|
Format_Local |
|
ESM::Variant::Variant |
( |
| ) |
|
ESM::Variant::Variant |
( |
const std::string & |
value | ) |
|
ESM::Variant::Variant |
( |
int |
value | ) |
|
ESM::Variant::Variant |
( |
float |
value | ) |
|
ESM::Variant::~Variant |
( |
| ) |
|
ESM::Variant::Variant |
( |
const Variant & |
variant | ) |
|
float ESM::Variant::getFloat |
( |
| ) |
const |
Will throw an exception, if value can not be represented as a float value.
int ESM::Variant::getInteger |
( |
| ) |
const |
Will throw an exception, if value can not be represented as an integer (implicit casting of float values is permitted).
std::string ESM::Variant::getString |
( |
| ) |
const |
Will throw an exception, if value can not be represented as a string.
bool ESM::Variant::isEqual |
( |
const Variant & |
value | ) |
const |
void ESM::Variant::setFloat |
( |
float |
value | ) |
|
Will throw an exception, if type is not compatible with float.
void ESM::Variant::setInteger |
( |
int |
value | ) |
|
Will throw an exception, if type is not compatible with integer.
void ESM::Variant::setString |
( |
const std::string & |
value | ) |
|
Will throw an exception, if type is not compatible with string.
void ESM::Variant::setType |
( |
VarType |
type | ) |
|
void ESM::Variant::write |
( |
std::ostream & |
stream | ) |
const |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/components/esm/variant.hpp
- /home/travis/build/OpenMW/openmw/components/esm/variant.cpp