HDK
|
#include <eventData.h>
Public Member Functions | |
TraceEventData () | |
Ctor for Invalid type. More... | |
TraceEventData (bool b) | |
Ctor for Bool type. More... | |
TraceEventData (int64_t i) | |
Ctor for Int type. More... | |
TraceEventData (uint64_t i) | |
Ctor for UInt type. More... | |
TraceEventData (double d) | |
Ctor for Float type. More... | |
TraceEventData (const std::string &s) | |
Ctor for String type. More... | |
TRACE_API TraceEvent::DataType | GetType () const |
Returns the Type of the data stored. More... | |
TRACE_API const int64_t * | GetInt () const |
Returns a pointer to the data or nullptr if the type is not Int. More... | |
TRACE_API const uint64_t * | GetUInt () const |
Returns a pointer to the data or nullptr if the type is not UInt. More... | |
TRACE_API const double * | GetFloat () const |
Returns a pointer to the data or nullptr if the type is not Float. More... | |
TRACE_API const bool * | GetBool () const |
Returns a pointer to the data or nullptr if the type is not Bool. More... | |
TRACE_API const std::string * | GetString () const |
Returns a pointer to the data or nullptr if the type is not String. More... | |
TRACE_API void | WriteJson (JsWriter &) const |
Writes a json representation of the data. More... | |
This class holds data that can be stored in TraceEvents.
Definition at line 45 of file eventData.h.
|
inline |
Ctor for Invalid type.
Definition at line 48 of file eventData.h.
|
inlineexplicit |
Ctor for Bool type.
Definition at line 51 of file eventData.h.
|
inlineexplicit |
Ctor for Int type.
Definition at line 54 of file eventData.h.
|
inlineexplicit |
Ctor for UInt type.
Definition at line 57 of file eventData.h.
|
inlineexplicit |
Ctor for Float type.
Definition at line 60 of file eventData.h.
|
inlineexplicit |
Ctor for String type.
Definition at line 63 of file eventData.h.
TRACE_API const bool* TraceEventData::GetBool | ( | ) | const |
Returns a pointer to the data or nullptr if the type is not Bool.
TRACE_API const double* TraceEventData::GetFloat | ( | ) | const |
Returns a pointer to the data or nullptr if the type is not Float.
TRACE_API const int64_t* TraceEventData::GetInt | ( | ) | const |
Returns a pointer to the data or nullptr if the type is not Int.
TRACE_API const std::string* TraceEventData::GetString | ( | ) | const |
Returns a pointer to the data or nullptr if the type is not String.
TRACE_API TraceEvent::DataType TraceEventData::GetType | ( | ) | const |
Returns the Type of the data stored.
TRACE_API const uint64_t* TraceEventData::GetUInt | ( | ) | const |
Returns a pointer to the data or nullptr if the type is not UInt.
Writes a json representation of the data.