Loading...
Searching...
No Matches
PLMD::h5table::Writer Class Reference

Writes a table: rows are buffered and written in chunks (flush() writes them all) More...

#include <H5Table.h>

Classes

struct  Impl
 

Public Member Functions

 Writer (const std::string &path, bool append)
 Create the file, or open it to append to its last block (append)
 
 Writer (const Writer &)=delete
 
 ~Writer ()
 
void addRow (const std::vector< Field > &fields, const std::vector< Field > &constants)
 Add a row with these fields and constants (a new block starts if they changed)
 
void flush ()
 Write the buffered rows and flush the file.
 
Writer & operator= (const Writer &)=delete
 
std::vector< unsigned long long > rows ()
 Number of rows of every block in the file (after writing the buffered rows)
 

Private Attributes

std::unique_ptr< Impl > impl
 

Detailed Description

Writes a table: rows are buffered and written in chunks (flush() writes them all)

Constructor & Destructor Documentation

◆ Writer() [1/2]

PLMD::h5table::Writer::Writer ( const std::string & path,
bool append )

Create the file, or open it to append to its last block (append)

◆ ~Writer()

PLMD::h5table::Writer::~Writer ( )
default

◆ Writer() [2/2]

PLMD::h5table::Writer::Writer ( const Writer & )
delete

Member Function Documentation

◆ addRow()

void PLMD::h5table::Writer::addRow ( const std::vector< Field > & fields,
const std::vector< Field > & constants )

Add a row with these fields and constants (a new block starts if they changed)

◆ flush()

void PLMD::h5table::Writer::flush ( )

Write the buffered rows and flush the file.

◆ operator=()

Writer & PLMD::h5table::Writer::operator= ( const Writer & )
delete

◆ rows()

std::vector< unsigned long long > PLMD::h5table::Writer::rows ( )

Number of rows of every block in the file (after writing the buffered rows)

Member Data Documentation

◆ impl

std::unique_ptr<Impl> PLMD::h5table::Writer::impl
private

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