HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TraceEventData Class Reference

#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::stringGetString () 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...
 

Detailed Description

This class holds data that can be stored in TraceEvents.

Definition at line 45 of file eventData.h.

Constructor & Destructor Documentation

TraceEventData::TraceEventData ( )
inline

Ctor for Invalid type.

Definition at line 48 of file eventData.h.

TraceEventData::TraceEventData ( bool  b)
inlineexplicit

Ctor for Bool type.

Definition at line 51 of file eventData.h.

TraceEventData::TraceEventData ( int64_t  i)
inlineexplicit

Ctor for Int type.

Definition at line 54 of file eventData.h.

TraceEventData::TraceEventData ( uint64_t  i)
inlineexplicit

Ctor for UInt type.

Definition at line 57 of file eventData.h.

TraceEventData::TraceEventData ( double  d)
inlineexplicit

Ctor for Float type.

Definition at line 60 of file eventData.h.

TraceEventData::TraceEventData ( const std::string s)
inlineexplicit

Ctor for String type.

Definition at line 63 of file eventData.h.

Member Function Documentation

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.

TRACE_API void TraceEventData::WriteJson ( JsWriter ) const

Writes a json representation of the data.


The documentation for this class was generated from the following file: