Interface Technology Basics VST 3.7
SDK for developing VST plug-in
|
A Value of variable type. More...
#include <fvariant.h>
Public Types | |
enum | { kEmpty = 0 , kInteger = 1 << 0 , kFloat = 1 << 1 , kString8 = 1 << 2 , kObject = 1 << 3 , kOwner = 1 << 4 , kString16 = 1 << 5 } |
Public Member Functions | |
FVariant () | |
FVariant (const FVariant &variant) | |
FVariant (bool b) | |
FVariant (uint32 v) | |
FVariant (int64 v) | |
FVariant (double v) | |
FVariant (const char8 *str) | |
FVariant (const char16 *str) | |
FVariant (FUnknown *obj, bool owner=false) | |
~FVariant () | |
FVariant & | operator= (const FVariant &variant) |
void | set (bool b) |
void | set (uint32 v) |
void | set (int64 v) |
void | set (double v) |
void | set (const char8 *c) |
void | set (const char16 *c) |
void | setInt (int64 v) |
void | setFloat (double v) |
void | setString8 (const char8 *v) |
void | setString16 (const char16 *v) |
void | setObject (FUnknown *obj) |
template<typename T > | |
T | get () const |
int64 | getInt () const |
double | getFloat () const |
double | getNumber () const |
const char8 * | getString8 () const |
const char16 * | getString16 () const |
FUnknown * | getObject () const |
uint16 | getType () const |
bool | isEmpty () const |
bool | isOwner () const |
bool | isString () const |
void | setOwner (bool state) |
void | empty () |
template<> | |
bool | get () const |
template<> | |
uint32 | get () const |
template<> | |
int32 | get () const |
template<> | |
int64 | get () const |
template<> | |
float | get () const |
template<> | |
double | get () const |
template<> | |
const char8 * | get () const |
template<> | |
const char16 * | get () const |
template<> | |
FUnknown * | get () const |
Public Attributes | |
uint16 | type |
union { | |
int64 intValue | |
double floatValue | |
const char8 * string8 | |
const char16 * string16 | |
FUnknown * object | |
}; | |
A Value of variable type.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
uint16 type |
int64 intValue |
double floatValue |
const char8* string8 |
const char16* string16 |
FUnknown* object |
union { ... } @4 |