sam::PersistenceManager::Writer¶
Declaration of the Writer class.
#include <PersistenceManager.h>
Public Functions¶
Name | |
---|---|
Writer() =default | |
~Writer() | |
Writer(const std::filesystem::path & filename) | |
Writer(const std::filesystem::path & path, const string & prefix, const std::filesystem::path filename) | |
Writer(const std::filesystem::path & filename, const std::vector< std::string > colnames) | |
void | write(const std::vector< std::string > & row_entries) |
void | write(const std::map< string, string > & row) |
void | write(const Submission & sub) |
void | write(std::vector< Submission > & subs, int sid =0) |
void | write(std::vector< arma::Row< float >> & data, int sid =0) |
void | write(Experiment * experiment, string_view mode, int sid) |
void | setColumnNames(const std::vector< std::string > & colnames) |
Public Functions Documentation¶
function Writer¶
Writer() =default
function ~Writer¶
~Writer()
function Writer¶
Writer(
const std::filesystem::path & filename
)
function Writer¶
Writer(
const std::filesystem::path & path,
const string & prefix,
const std::filesystem::path filename
)
function Writer¶
Writer(
const std::filesystem::path & filename,
const std::vector< std::string > colnames
)
function write¶
void write(
const std::vector< std::string > & row_entries
)
function write¶
void write(
const std::map< string, string > & row
)
function write¶
void write(
const Submission & sub
)
function write¶
void write(
std::vector< Submission > & subs,
int sid =0
)
Parameters:
- subs A reference to Submission container
Write a list of submission records to a file, or a database
TodoThis looks strange, and it's also very inefficient! Optimize it! It's somewhat better than &&s, but not great yet!
function write¶
void write(
std::vector< arma::Row< float >> & data,
int sid =0
)
Parameters:
- data A reference to the Experiment->measurements
Write each groups' data to a file, or a database
function write¶
void write(
Experiment * experiment,
string_view mode,
int sid
)
Parameters:
- A constance reference to the Experiment
Write part of the Experiment to a file, or a database
function setColumnNames¶
void setColumnNames(
const std::vector< std::string > & colnames
)
Updated on 29 June 2021 at 16:13:46 CEST
Last update: 2021-09-18