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 67 of file EventWriter.h.

Constructor & Destructor Documentation

◆ MDTableWriter()

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

Definition at line 70 of file EventWriter.h.

70 : EventFormatWriter(filepath)
71 { /* empty */
72 }

◆ ~MDTableWriter()

MDTableWriter::~MDTableWriter ( )
inline

Definition at line 73 of file EventWriter.h.

73{}

Member Function Documentation

◆ flush()

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

Implements EventFormatWriter.

Definition at line 357 of file MDTableEventWriter.cc.

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

References EventFormatWriter::_os.


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