This class contains methods to read and write TraceCollection. More...
Static Public Member Functions | |
static TRACE_API bool | Write (std::ostream &ostr, const std::shared_ptr< TraceCollection > &col) |
Writes col to ostr . More... | |
static TRACE_API bool | Write (std::ostream &ostr, const std::vector< std::shared_ptr< TraceCollection >> &collections) |
Writes collections to ostr . More... | |
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 . More... | |
This class contains methods to read and write TraceCollection.
Definition at line 44 of file serialization.h.
|
static |
Tries to create a TraceCollection from the contexts of istr
.
Returns a pointer to the created collection if it was successful. If there is an error reading istr
, error
will be populated with a description.
|
static |
Writes col
to ostr
.
Returns true if the write was successful, false otherwise.
|
static |
Writes collections
to ostr
.
Returns true if the write was successful, false otherwise.