8#ifndef PXR_BASE_TRACE_EVENT_DATA_H
9#define PXR_BASE_TRACE_EVENT_DATA_H
13#include "pxr/base/trace/api.h"
14#include "pxr/base/trace/event.h"
19PXR_NAMESPACE_OPEN_SCOPE
52 TRACE_API
const int64_t*
GetInt()
const;
55 TRACE_API
const uint64_t*
GetUInt()
const;
74 std::variant<_NoData, std::string, bool, int64_t, uint64_t, double>;
78PXR_NAMESPACE_CLOSE_SCOPE
This class provides an interface to writing json values directly to a stream.
This class holds data that can be stored in TraceEvents.
TRACE_API const double * GetFloat() const
Returns a pointer to the data or nullptr if the type is not Float.
TraceEventData(uint64_t i)
Ctor for UInt type.
TRACE_API TraceEvent::DataType GetType() const
Returns the Type of the data stored.
TRACE_API const bool * GetBool() const
Returns a pointer to the data or nullptr if the type is not Bool.
TRACE_API const std::string * GetString() const
Returns a pointer to the data or nullptr if the type is not String.
TRACE_API void WriteJson(JsWriter &) const
Writes a json representation of the data.
TraceEventData(int64_t i)
Ctor for Int type.
TRACE_API const int64_t * GetInt() const
Returns a pointer to the data or nullptr if the type is not Int.
TRACE_API const uint64_t * GetUInt() const
Returns a pointer to the data or nullptr if the type is not UInt.
TraceEventData()
Ctor for Invalid type.
TraceEventData(const std::string &s)
Ctor for String type.
TraceEventData(bool b)
Ctor for Bool type.
TraceEventData(double d)
Ctor for Float type.
DataType
The different types of data that can be stored in a TraceEvent instance.