AJA NTV2 SDK
17.0.1.1246
NTV2 SDK 17.0.1.1246
|
A simple Variant class. More...
#include <variant.h>
Public Member Functions | |
AJAVariant () | |
AJAVariant (AJAVariantType type) | |
AJAVariant (bool value) | |
AJAVariant (float value) | |
AJAVariant (double value) | |
AJAVariant (int8_t value) | |
AJAVariant (uint8_t value) | |
AJAVariant (int16_t value) | |
AJAVariant (uint16_t value) | |
AJAVariant (int32_t value) | |
AJAVariant (uint32_t value) | |
AJAVariant (int64_t value) | |
AJAVariant (uint64_t value) | |
AJAVariant (const char *value) | |
AJAVariant (const char *value, size_t length) | |
AJAVariant (const std::string &value) | |
AJAVariant (const AJAVariant &other) | |
~AJAVariant () | |
void | operator= (const AJAVariant &other) |
operator bool () const | |
operator float () const | |
operator double () const | |
operator int8_t () const | |
operator uint8_t () const | |
operator int16_t () const | |
operator uint16_t () const | |
operator int32_t () const | |
operator uint32_t () const | |
operator int64_t () const | |
operator uint64_t () const | |
operator std::string () const | |
AJAVariantType | GetType () const |
bool | GetBool () const |
float | GetFloat () const |
double | GetDouble () const |
int8_t | GetInt8 () const |
uint8_t | GetUInt8 () const |
int16_t | GetInt16 () const |
uint16_t | GetUInt16 () const |
int32_t | GetInt32 () const |
uint32_t | GetUInt32 () const |
int64_t | GetInt64 () const |
uint64_t | GetUInt64 () const |
const std::string & | GetString () const |
void | SetBool (bool value) |
void | SetFloat (float value) |
void | SetDouble (double value) |
void | SetInt8 (int8_t value) |
void | SetUInt8 (uint8_t value) |
void | SetInt16 (int16_t value) |
void | SetUInt16 (uint16_t value) |
void | SetInt32 (int32_t value) |
void | SetUInt32 (uint32_t value) |
void | SetInt64 (int64_t value) |
void | SetUInt64 (uint64_t value) |
void | SetString (const char *value) |
void | SetString (const char *value, size_t length) |
void | SetString (const std::string &value) |
bool | AsBool () const |
float | AsFloat () const |
double | AsDouble () const |
int8_t | AsInt8 () const |
uint8_t | AsUInt8 () const |
int16_t | AsInt16 () const |
uint16_t | AsUInt16 () const |
int32_t | AsInt32 () const |
uint32_t | AsUInt32 () const |
int64_t | AsInt64 () const |
uint64_t | AsUInt64 () const |
std::string | AsString () const |
AJAVariant::AJAVariant | ( | ) |
Definition at line 17 of file variant.cpp.
|
explicit |
Definition at line 22 of file variant.cpp.
|
explicit |
Definition at line 73 of file variant.cpp.
|
explicit |
Definition at line 75 of file variant.cpp.
|
explicit |
Definition at line 77 of file variant.cpp.
|
explicit |
Definition at line 79 of file variant.cpp.
|
explicit |
Definition at line 81 of file variant.cpp.
|
explicit |
Definition at line 83 of file variant.cpp.
|
explicit |
Definition at line 85 of file variant.cpp.
|
explicit |
Definition at line 87 of file variant.cpp.
|
explicit |
Definition at line 89 of file variant.cpp.
|
explicit |
Definition at line 91 of file variant.cpp.
|
explicit |
Definition at line 93 of file variant.cpp.
|
explicit |
Definition at line 95 of file variant.cpp.
|
explicit |
|
explicit |
Definition at line 99 of file variant.cpp.
AJAVariant::AJAVariant | ( | const AJAVariant & | other | ) |
Definition at line 103 of file variant.cpp.
bool AJAVariant::AsBool | ( | ) | const |
Get the value of this variant as bool.
Definition at line 299 of file variant.cpp.
double AJAVariant::AsDouble | ( | ) | const |
Get the value of this variant as double.
Definition at line 387 of file variant.cpp.
float AJAVariant::AsFloat | ( | ) | const |
Get the value of this variant as float.
Definition at line 344 of file variant.cpp.
int16_t AJAVariant::AsInt16 | ( | ) | const |
Get the value of this variant as int16_t.
Definition at line 504 of file variant.cpp.
int32_t AJAVariant::AsInt32 | ( | ) | const |
Get the value of this variant as int32_t.
Definition at line 582 of file variant.cpp.
int64_t AJAVariant::AsInt64 | ( | ) | const |
Get the value of this variant as int64_t.
Definition at line 660 of file variant.cpp.
int8_t AJAVariant::AsInt8 | ( | ) | const |
Get the value of this variant as int8_t.
Definition at line 426 of file variant.cpp.
std::string AJAVariant::AsString | ( | ) | const |
Get the value of this variant as std::string.
Definition at line 755 of file variant.cpp.
uint16_t AJAVariant::AsUInt16 | ( | ) | const |
Get the value of this variant as uint16_t.
Definition at line 543 of file variant.cpp.
uint32_t AJAVariant::AsUInt32 | ( | ) | const |
Get the value of this variant as uint32_t.
Definition at line 621 of file variant.cpp.
uint64_t AJAVariant::AsUInt64 | ( | ) | const |
Get the value of this variant as uint64_t.
Definition at line 703 of file variant.cpp.
uint8_t AJAVariant::AsUInt8 | ( | ) | const |
Get the value of this variant as uint8_t.
Definition at line 465 of file variant.cpp.
bool AJAVariant::GetBool | ( | ) | const |
Get the bool value from this variant.
Definition at line 203 of file variant.cpp.
double AJAVariant::GetDouble | ( | ) | const |
Get the double value from this variant.
Definition at line 209 of file variant.cpp.
float AJAVariant::GetFloat | ( | ) | const |
Get the float value from this variant.
Definition at line 206 of file variant.cpp.
int16_t AJAVariant::GetInt16 | ( | ) | const |
Get the int16_t value from this variant.
Definition at line 218 of file variant.cpp.
int32_t AJAVariant::GetInt32 | ( | ) | const |
Get the int32_t value from this variant.
Definition at line 224 of file variant.cpp.
int64_t AJAVariant::GetInt64 | ( | ) | const |
Get the int64_t value from this variant.
Definition at line 230 of file variant.cpp.
int8_t AJAVariant::GetInt8 | ( | ) | const |
Get the int8_t value from this variant.
Definition at line 212 of file variant.cpp.
const std::string & AJAVariant::GetString | ( | ) | const |
Get the std::string value from this variant.
Definition at line 236 of file variant.cpp.
|
inline |
uint16_t AJAVariant::GetUInt16 | ( | ) | const |
Get the uint16_t value from this variant.
Definition at line 221 of file variant.cpp.
uint32_t AJAVariant::GetUInt32 | ( | ) | const |
Get the uint32_t value from this variant.
Definition at line 227 of file variant.cpp.
uint64_t AJAVariant::GetUInt64 | ( | ) | const |
Get the uint64_t value from this variant.
Definition at line 233 of file variant.cpp.
uint8_t AJAVariant::GetUInt8 | ( | ) | const |
Get the uint8_t value from this variant.
Definition at line 215 of file variant.cpp.
AJAVariant::operator bool | ( | ) | const |
Definition at line 153 of file variant.cpp.
AJAVariant::operator double | ( | ) | const |
Definition at line 161 of file variant.cpp.
AJAVariant::operator float | ( | ) | const |
Definition at line 157 of file variant.cpp.
AJAVariant::operator int16_t | ( | ) | const |
Definition at line 173 of file variant.cpp.
AJAVariant::operator int32_t | ( | ) | const |
Definition at line 181 of file variant.cpp.
AJAVariant::operator int64_t | ( | ) | const |
Definition at line 189 of file variant.cpp.
AJAVariant::operator int8_t | ( | ) | const |
Definition at line 165 of file variant.cpp.
AJAVariant::operator std::string | ( | ) | const |
Definition at line 197 of file variant.cpp.
AJAVariant::operator uint16_t | ( | ) | const |
Definition at line 177 of file variant.cpp.
AJAVariant::operator uint32_t | ( | ) | const |
Definition at line 185 of file variant.cpp.
AJAVariant::operator uint64_t | ( | ) | const |
Definition at line 193 of file variant.cpp.
AJAVariant::operator uint8_t | ( | ) | const |
Definition at line 169 of file variant.cpp.
void AJAVariant::operator= | ( | const AJAVariant & | other | ) |
Definition at line 107 of file variant.cpp.
void AJAVariant::SetBool | ( | bool | value | ) |
Set the value of this variant from the specified bool.
[in] | value | The bool value to set. |
Definition at line 241 of file variant.cpp.
void AJAVariant::SetDouble | ( | double | value | ) |
Set the value of this variant from the specified double.
[in] | value | The double value to set. |
Definition at line 249 of file variant.cpp.
void AJAVariant::SetFloat | ( | float | value | ) |
Set the value of this variant from the specified float.
[in] | value | The float value to set. |
Definition at line 245 of file variant.cpp.
void AJAVariant::SetInt16 | ( | int16_t | value | ) |
Set the value of this variant from the specified int16_t.
[in] | value | The int16_t value to set. |
Definition at line 261 of file variant.cpp.
void AJAVariant::SetInt32 | ( | int32_t | value | ) |
Set the value of this variant from the specified int32_t.
[in] | value | The int32_t value to set. |
Definition at line 269 of file variant.cpp.
void AJAVariant::SetInt64 | ( | int64_t | value | ) |
Set the value of this variant from the specified int64_t.
[in] | value | The int64_t value to set. |
Definition at line 277 of file variant.cpp.
void AJAVariant::SetInt8 | ( | int8_t | value | ) |
Set the value of this variant from the specified int8_t.
[in] | value | The int8_t value to set. |
Definition at line 253 of file variant.cpp.
void AJAVariant::SetString | ( | const char * | value | ) |
Set the value of this variant from the specified c-string.
[in] | value | The c-string value to set. |
Definition at line 285 of file variant.cpp.
void AJAVariant::SetString | ( | const char * | value, |
size_t | length | ||
) |
Set the value of this variant from the specified c-string.
[in] | value | The c-string value to set. |
[in] | value | The size of the string value. |
void AJAVariant::SetString | ( | const std::string & | value | ) |
Set the value of this variant from the specified std::string.
[in] | value | The std::string value to set. |
Definition at line 293 of file variant.cpp.
void AJAVariant::SetUInt16 | ( | uint16_t | value | ) |
Set the value of this variant from the specified uint16_t.
[in] | value | The uint16_t value to set. |
Definition at line 265 of file variant.cpp.
void AJAVariant::SetUInt32 | ( | uint32_t | value | ) |
Set the value of this variant from the specified uint32_t.
[in] | value | The uint32_t value to set. |
Definition at line 273 of file variant.cpp.
void AJAVariant::SetUInt64 | ( | uint64_t | value | ) |
Set the value of this variant from the specified uint64_t.
[in] | value | The uint64_t value to set. |
Definition at line 281 of file variant.cpp.
void AJAVariant::SetUInt8 | ( | uint8_t | value | ) |
Set the value of this variant from the specified uint8_t.
[in] | value | The uint8_t value to set. |
Definition at line 257 of file variant.cpp.