HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TraceSerialization Class Reference

#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)
 

Detailed Description

This class contains methods to read and write TraceCollection.

Definition at line 44 of file serialization.h.

Member Function Documentation

static TRACE_API std::unique_ptr<TraceCollection> TraceSerialization::Read ( std::istream &  istr,
std::string error = nullptr 
)
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 TRACE_API bool TraceSerialization::Write ( std::ostream &  ostr,
const std::shared_ptr< TraceCollection > &  col 
)
static

Writes col to ostr. Returns true if the write was successful, false otherwise.

static TRACE_API bool TraceSerialization::Write ( std::ostream &  ostr,
const std::vector< std::shared_ptr< TraceCollection >> &  collections 
)
static

Writes collections to ostr. Returns true if the write was successful, false otherwise.


The documentation for this class was generated from the following file: