HDK
|
#include <serialization.h>
Static Public Member Functions | |
static TRACE_API bool | Write (std::ostream &ostr, const std::shared_ptr< TraceCollection > &col) |
static TRACE_API bool | Write (std::ostream &ostr, const std::vector< std::shared_ptr< TraceCollection >> &collections) |
static TRACE_API std::unique_ptr < TraceCollection > | Read (std::istream &istr, std::string *error=nullptr) |
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.