ONE - On-device Neural Engine
Loading...
Searching...
No Matches
MDTableWriter Class Reference

#include <EventWriter.h>

Collaboration diagram for MDTableWriter:

Public Member Functions

 MDTableWriter (const std::string &filepath)
 
 ~MDTableWriter ()
 
void flush (const std::vector< std::unique_ptr< EventRecorder > > &) override
 
- Public Member Functions inherited from EventFormatWriter
 EventFormatWriter (const std::string &filepath)
 
virtual ~EventFormatWriter ()
 

Additional Inherited Members

- Protected Attributes inherited from EventFormatWriter
std::ofstream _os
 

Detailed Description

Definition at line 65 of file EventWriter.h.

Constructor & Destructor Documentation

◆ MDTableWriter()

MDTableWriter::MDTableWriter ( const std::string &  filepath)
inline

Definition at line 68 of file EventWriter.h.

68 : EventFormatWriter(filepath)
69 { /* empty */
70 }

◆ ~MDTableWriter()

MDTableWriter::~MDTableWriter ( )
inline

Definition at line 71 of file EventWriter.h.

71{}

Member Function Documentation

◆ flush()

void MDTableWriter::flush ( const std::vector< std::unique_ptr< EventRecorder > > &  records)
overridevirtual

Implements EventFormatWriter.

Definition at line 358 of file MDTableEventWriter.cc.

359{
360 for (const auto &recorder : records)
361 {
362 MDTableBuilder(recorder->duration_events(), recorder->counter_events()).build().write(_os);
363 }
364}
std::ofstream _os
Definition EventWriter.h:39

References EventFormatWriter::_os.


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