ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Write arbitrary data as delimiter-separated values into a text file. More...
#include <acts/blob/master/thirdparty/dfelibs/dfe/dfe_io_dsv.hpp>
Public Member Functions | |
DsvWriter ()=delete | |
DsvWriter (const DsvWriter &)=delete | |
DsvWriter (DsvWriter &&)=default | |
~DsvWriter ()=default | |
DsvWriter & | operator= (const DsvWriter &)=delete |
DsvWriter & | operator= (DsvWriter &&)=default |
DsvWriter (const std::vector< std::string > &columns, const std::string &path, int precision=std::numeric_limits< double >::max_digits10) | |
template<typename Arg0 , typename... Args> | |
void | append (Arg0 &&arg0, Args &&...args) |
Static Private Member Functions | |
template<typename T > | |
static std::enable_if_t < std::is_arithmetic < std::decay_t< T > >::value or std::is_convertible< T, std::string >::value, unsigned > | write (T &&x, std::ostream &os) |
template<typename T , typename Allocator > | |
static unsigned | write (const std::vector< T, Allocator > &xs, std::ostream &os) |
Private Attributes | |
std::ofstream | m_file |
std::size_t | m_num_columns |
Write arbitrary data as delimiter-separated values into a text file.
Definition at line 46 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 46 of file dfe_io_dsv.hpp
|
delete |
|
delete |
|
default |
|
default |
|
inline |
Create a file at the given path. Overwrites existing data.
columns | Column names, fixes the number of columns for the file |
path | Path to the output file |
precision | Output floating point precision |
Definition at line 261 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 261 of file dfe_io_dsv.hpp
References dfe::io_dsv_impl::DsvWriter< Delimiter >::append(), dfe::io_dsv_impl::DsvWriter< Delimiter >::m_file, and dfe::io_dsv_impl::DsvWriter< Delimiter >::m_num_columns.
|
inline |
Append arguments as a new row to the file.
Each argument corresponds to one column. The writer ensures that the number of columns written match the number of columns that were specified during construction.
std::vector
arguments are automatically unpacked and each entry is written as a separate column. Definition at line 281 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 281 of file dfe_io_dsv.hpp
Referenced by dfe::io_dsv_impl::DsvWriter< Delimiter >::DsvWriter().
|
delete |
|
default |
|
inlinestaticprivate |
Definition at line 322 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 322 of file dfe_io_dsv.hpp
References Acts::UnitConstants::u, and x.
|
inlinestaticprivate |
Definition at line 330 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 330 of file dfe_io_dsv.hpp
|
private |
Definition at line 76 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 76 of file dfe_io_dsv.hpp
Referenced by dfe::io_dsv_impl::DsvWriter< Delimiter >::DsvWriter().
|
private |
Definition at line 77 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 77 of file dfe_io_dsv.hpp
Referenced by dfe::io_dsv_impl::DsvWriter< Delimiter >::DsvWriter().