SO3Engine
|
#include <FlashValue.h>
Public Member Functions | |
FlashValue () | |
FlashValue (bool booleanValue) | |
FlashValue (int numericValue) | |
FlashValue (float numericValue) | |
FlashValue (const char *stringValue) | |
FlashValue (const std::string &stringValue) | |
FlashValue (const std::wstring &wstringValue) | |
short | getType () const |
bool | isNull () const |
void | setNull () |
bool | getBool () const |
float | getNumber () const |
colorValueBase | getNumberAsColor () const |
std::string | getString () const |
std::wstring | getWString () const |
FlashValue represents a Flash ActionScript variable. The currently supported types are: null, boolean, number, and string.
Definition at line 61 of file FlashValue.h.
FlashValue::FlashValue | ( | ) |
Creates a null FlashValue.
Definition at line 70 of file FlashValue.cpp.
FlashValue::FlashValue | ( | bool | booleanValue | ) |
Creates a FlashValue as a boolean type.
booleanValue | The value to initialize this FlashValue with. |
Definition at line 74 of file FlashValue.cpp.
FlashValue::FlashValue | ( | int | numericValue | ) |
Creates a FlashValue as a number type.
numericValue | The value to initialize this FlashValue with. |
Definition at line 78 of file FlashValue.cpp.
FlashValue::FlashValue | ( | float | numericValue | ) |
Creates a FlashValue as a number type.
numericValue | The value to initialize this FlashValue with. |
Definition at line 82 of file FlashValue.cpp.
FlashValue::FlashValue | ( | const char * | stringValue | ) |
Creates a FlashValue as a string type.
stringValue | The value to initialize this FlashValue with. |
Definition at line 86 of file FlashValue.cpp.
FlashValue::FlashValue | ( | const std::string & | stringValue | ) |
Creates a FlashValue as a string type.
stringValue | The value to initialize this FlashValue with. Creates a FlashValue as a string type. |
stringValue | The value to initialize this FlashValue with. |
Definition at line 96 of file FlashValue.cpp.
FlashValue::FlashValue | ( | const std::wstring & | wstringValue | ) |
Creates a FlashValue as a string type.
stringValue | The value to initialize this FlashValue with. |
Definition at line 100 of file FlashValue.cpp.
bool FlashValue::getBool | ( | ) | const |
Retrieves the value as a boolean.
Definition at line 127 of file FlashValue.cpp.
float FlashValue::getNumber | ( | ) | const |
Retrieves the value as a number.
Definition at line 139 of file FlashValue.cpp.
colorValueBase FlashValue::getNumberAsColor | ( | ) | const |
If this FlashValue is a number type, retrieves the number value interpreted as a color.
Definition at line 151 of file FlashValue.cpp.
std::string FlashValue::getString | ( | ) | const |
Retrieves the value as a string.
Definition at line 168 of file FlashValue.cpp.
short FlashValue::getType | ( | ) | const |
Creates a FlashValue as a string type.
stringValue | The value to initialize this FlashValue with. Retrieves the FlashType of this FlashValue. |
Definition at line 109 of file FlashValue.cpp.
std::wstring FlashValue::getWString | ( | ) | const |
Definition at line 180 of file FlashValue.cpp.
bool FlashValue::isNull | ( | ) | const |
Returns whether or not this FlashValue is of a null type.
Definition at line 114 of file FlashValue.cpp.
void FlashValue::setNull | ( | ) |
Sets this FlashValue as a null type.
Definition at line 119 of file FlashValue.cpp.