25 #ifndef PXR_BASE_TRACE_EVENT_DATA_H
26 #define PXR_BASE_TRACE_EVENT_DATA_H
91 std::variant<_NoData, std::string, bool, int64_t, uint64_t, double>;
97 #endif // PXR_BASE_TRACE_EVENT_DATA_H
TRACE_API const std::string * GetString() const
Returns a pointer to the data or nullptr if the type is not String.
TraceEventData(bool b)
Ctor for Bool type.
GLsizei const GLchar *const * string
TRACE_API const bool * GetBool() const
Returns a pointer to the data or nullptr if the type is not Bool.
TRACE_API TraceEvent::DataType GetType() const
Returns the Type of the data stored.
TraceEventData(const std::string &s)
Ctor for String type.
TraceEventData()
Ctor for Invalid type.
GLboolean GLboolean GLboolean b
TraceEventData(uint64_t i)
Ctor for UInt type.
TRACE_API const uint64_t * GetUInt() const
Returns a pointer to the data or nullptr if the type is not UInt.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
DataType
The different types of data that can be stored in a TraceEvent instance.
TRACE_API const int64_t * GetInt() const
Returns a pointer to the data or nullptr if the type is not Int.
#define PXR_NAMESPACE_CLOSE_SCOPE
TraceEventData(double d)
Ctor for Float type.
TRACE_API const double * GetFloat() const
Returns a pointer to the data or nullptr if the type is not Float.
TRACE_API void WriteJson(JsWriter &) const
Writes a json representation of the data.
TraceEventData(int64_t i)
Ctor for Int type.