|
Twitch SDK (Internal)
|
#include <coretypes.h>
Classes | |
| union | Value |
Public Types | |
| enum | Type { Type::Null, Type::Boolean, Type::Integer, Type::Double, Type::String } |
Public Member Functions | |
| TrackingValue () | |
| TrackingValue (std::nullptr_t value) | |
| TrackingValue (bool value) | |
| TrackingValue (int64_t value) | |
| TrackingValue (uint32_t value) | |
| TrackingValue (int value) | |
| TrackingValue (double value) | |
| TrackingValue (const std::string &value) | |
| TrackingValue (std::string &&value) | |
| TrackingValue (const char *value) | |
| TrackingValue (const TrackingValue &src) | |
| TrackingValue (TrackingValue &&src) | |
| ~TrackingValue () | |
| TrackingValue & | operator= (const TrackingValue &src) |
| TrackingValue & | operator= (TrackingValue &&src) |
| Type | GetType () const |
| bool | GetBooleanValue () const |
| int64_t | GetIntegerValue () const |
| double | GetDoubleValue () const |
| std::string | GetStringValue () const |
Private Attributes | |
| union ttv::TrackingValue::Value | mValue |
| Type | mType |
TrackingValue - A class that can contain several types of values to send as tracking properties.
|
strong |
| ttv::TrackingValue::TrackingValue | ( | ) |
Default constructor and nullptr create a value of Null type.
| ttv::TrackingValue::TrackingValue | ( | std::nullptr_t | value | ) |
| ttv::TrackingValue::TrackingValue | ( | bool | value | ) |
Creates a value of boolean type.
| ttv::TrackingValue::TrackingValue | ( | int64_t | value | ) |
Creates a value of integer type.
| ttv::TrackingValue::TrackingValue | ( | uint32_t | value | ) |
| ttv::TrackingValue::TrackingValue | ( | int | value | ) |
| ttv::TrackingValue::TrackingValue | ( | double | value | ) |
Creates a value of double type.
| ttv::TrackingValue::TrackingValue | ( | const std::string & | value | ) |
Creates a value of string type.
| ttv::TrackingValue::TrackingValue | ( | std::string && | value | ) |
| ttv::TrackingValue::TrackingValue | ( | const char * | value | ) |
| ttv::TrackingValue::TrackingValue | ( | const TrackingValue & | src | ) |
| ttv::TrackingValue::TrackingValue | ( | TrackingValue && | src | ) |
| ttv::TrackingValue::~TrackingValue | ( | ) |
| bool ttv::TrackingValue::GetBooleanValue | ( | ) | const |
Returns the value contained. It is illegal to call the getter that does not match the contained type. As such, the user of this interface should always call GetType() first to determine what value type is stored.
| double ttv::TrackingValue::GetDoubleValue | ( | ) | const |
| int64_t ttv::TrackingValue::GetIntegerValue | ( | ) | const |
| std::string ttv::TrackingValue::GetStringValue | ( | ) | const |
|
inline |
Returns the type of value contained.
| TrackingValue& ttv::TrackingValue::operator= | ( | const TrackingValue & | src | ) |
| TrackingValue& ttv::TrackingValue::operator= | ( | TrackingValue && | src | ) |
|
private |
|
private |
1.8.13