trace::TraceReader

Summary

Inheritance

Direct Known Subclasses:trace::FileReader

Constructors and Destructors

TraceReader(RecordConsumer record_consumer, ErrorHandler error_handler)
~TraceReader()

Public types

ErrorHandler using
fit::function< void(std::string_view)>
RecordConsumer using

Public functions

GetProviderName(ProviderId id) const
std::string
ReadRecords(Chunk & chunk)
bool
current_provider_id() const
ProviderId
current_provider_name() const
const std::string &
error_handler() const
const ErrorHandler &

Protected functions

ReportError(std::string_view error) const
void

Public types

ErrorHandler

fit::function< void(std::string_view)> ErrorHandler

RecordConsumer

fit::function< void(Record)> RecordConsumer

Public functions

GetProviderName

std::string GetProviderName(
  ProviderId id
) const 

ReadRecords

bool ReadRecords(
  Chunk & chunk
)

TraceReader

 TraceReader(
  RecordConsumer record_consumer,
  ErrorHandler error_handler
)

current_provider_id

ProviderId current_provider_id() const 

current_provider_name

const std::string & current_provider_name() const 

error_handler

const ErrorHandler & error_handler() const 

~TraceReader

 ~TraceReader()

Protected functions

ReportError

void ReportError(
  std::string_view error
) const