|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Helper to write binning configuration snapshots as a JSON array. More...
#include <BinConfigWriter.h>

Public Member Functions | |
| BinConfigWriter (const std::string &fileName) | |
| ~BinConfigWriter () | |
| void | writeEntry (long long step, double time, bool preMerge, const std::vector< std::size_t > &binCounts, const std::vector< double > &binWidths, double xMin) |
Private Attributes | |
| std::ofstream | os_ |
| bool | first_ |
Helper to write binning configuration snapshots as a JSON array.
The writer owns a single JSON file. On construction it opens the file in truncate mode and emits the opening '['. Each call to writeEntry appends a JSON object (with comma handling). The destructor closes the array and file.
Definition at line 34 of file BinConfigWriter.h.
|
explicit |
Definition at line 15 of file BinConfigWriter.cpp.
References os_.
| BinConfigWriter::~BinConfigWriter | ( | ) |
Definition at line 30 of file BinConfigWriter.cpp.
References os_.
| void BinConfigWriter::writeEntry | ( | long long | step, |
| double | time, | ||
| bool | preMerge, | ||
| const std::vector< std::size_t > & | binCounts, | ||
| const std::vector< double > & | binWidths, | ||
| double | xMin | ||
| ) |
|
private |
Definition at line 46 of file BinConfigWriter.h.
Referenced by writeEntry().
|
private |
Definition at line 45 of file BinConfigWriter.h.
Referenced by BinConfigWriter(), writeEntry(), and ~BinConfigWriter().