SFlashVarValue

Variant type to pass values to flash variables

C++
struct SFlashVarValue {
  union Data {
    bool b;
    int i;
    unsigned int ui;
    double d;
    float f;
    const char* pStr;
    const wchar_t* pWstr;
  };
  enum Type {
    eUndefined,
    eNull,
    eBool,
    eInt,
    eUInt,
    eDouble,
    eFloat,
    eConstStrPtr,
    eConstWstrPtr,
    eObject
  };
public:
  Type type;
public:
  Data data;
};
File

IFlashPlayer.h

SFlashVarValue::Data Union
C++
union Data {
  bool b;
  int i;
  unsigned int ui;
  double d;
  float f;
  const char* pStr;
  const wchar_t* pWstr;
};
File

IFlashPlayer.h

SFlashVarValue::Type Enumeration

Enumerates types that can be sent to and received from flash

C++
enum Type {
  eUndefined,
  eNull,
  eBool,
  eInt,
  eUInt,
  eDouble,
  eFloat,
  eConstStrPtr,
  eConstWstrPtr,
  eObject
};
File

IFlashPlayer.h

Members
Members
Description
eObject
receive only!
SFlashVarValue::data Data Member
C++
Data data;
SFlashVarValue::type Data Member
C++
Type type;
SFlashVarValue::CreateNull Method
C++
static SFlashVarValue CreateNull();
SFlashVarValue::CreateUndefined Method
C++
static SFlashVarValue CreateUndefined();
SFlashVarValue::GetBool Method
C++
bool GetBool() const;
SFlashVarValue::GetConstStrPtr Method
C++
const char* GetConstStrPtr() const;
SFlashVarValue::GetConstWstrPtr Method
C++
const wchar_t* GetConstWstrPtr() const;
SFlashVarValue::GetDouble Method
C++
double GetDouble() const;
SFlashVarValue::GetFloat Method
C++
float GetFloat() const;
SFlashVarValue::GetInt Method
C++
int GetInt() const;
SFlashVarValue::GetType Method
C++
Type GetType() const;
SFlashVarValue::GetUInt Method
C++
int GetUInt() const;
SFlashVarValue::IsBool Method
C++
bool IsBool() const;
SFlashVarValue::IsConstStr Method
C++
bool IsConstStr() const;
SFlashVarValue::IsConstWstr Method
C++
bool IsConstWstr() const;
SFlashVarValue::IsDouble Method
C++
bool IsDouble() const;
SFlashVarValue::IsFloat Method
C++
bool IsFloat() const;
SFlashVarValue::IsInt Method
C++
bool IsInt() const;
SFlashVarValue::IsNull Method
C++
bool IsNull() const;
SFlashVarValue::IsObject Method
C++
bool IsObject() const;
SFlashVarValue::IsUInt Method
C++
bool IsUInt() const;
SFlashVarValue::IsUndefined Method
C++
bool IsUndefined() const;
SFlashVarValue::SFlashVarValue Constructor ()
C++
SFlashVarValue(bool val);
SFlashVarValue(int val);
SFlashVarValue(unsigned int val);
SFlashVarValue(double val);
SFlashVarValue(float val);
SFlashVarValue(const char* val);
SFlashVarValue(const wchar_t* val);
SFlashVarValue();
SFlashVarValue(Type t);
Description

Notes: Don't define default constructor to enforce efficient default initialization of argument lists!