25#ifndef PXR_BASE_TRACE_SERIALIZATION_H
26#define PXR_BASE_TRACE_SERIALIZATION_H
29#include "pxr/base/trace/api.h"
30#include "pxr/base/trace/collection.h"
37PXR_NAMESPACE_OPEN_SCOPE
48 TRACE_API
static bool Write(std::ostream& ostr,
49 const std::shared_ptr<TraceCollection>& col);
55 const std::vector<std::shared_ptr<TraceCollection>>& collections);
61 TRACE_API
static std::unique_ptr<TraceCollection>
Read(std::istream& istr,
62 std::string* error =
nullptr);
65PXR_NAMESPACE_CLOSE_SCOPE
This class contains methods to read and write TraceCollection.
static TRACE_API std::unique_ptr< TraceCollection > Read(std::istream &istr, std::string *error=nullptr)
Tries to create a TraceCollection from the contexts of istr.
static TRACE_API bool Write(std::ostream &ostr, const std::shared_ptr< TraceCollection > &col)
Writes col to ostr.
static TRACE_API bool Write(std::ostream &ostr, const std::vector< std::shared_ptr< TraceCollection > > &collections)
Writes collections to ostr.