ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Write records as delimiter-separated values into a text file. More...
#include <acts/blob/master/thirdparty/dfelibs/dfe/dfe_io_dsv.hpp>
Public Member Functions | |
NamedTupleDsvWriter ()=delete | |
NamedTupleDsvWriter (const NamedTupleDsvWriter &)=delete | |
NamedTupleDsvWriter (NamedTupleDsvWriter &&)=default | |
~NamedTupleDsvWriter ()=default | |
NamedTupleDsvWriter & | operator= (const NamedTupleDsvWriter &)=delete |
NamedTupleDsvWriter & | operator= (NamedTupleDsvWriter &&)=default |
NamedTupleDsvWriter (const std::string &path, int precision=std::numeric_limits< double >::max_digits10) | |
void | append (const NamedTuple &record) |
Append a record to the file. | |
Private Member Functions | |
template<std::size_t... I> | |
void | append_impl (const NamedTuple &values, std::index_sequence< I...>) |
Static Private Member Functions | |
static std::vector< std::string > | colum_names () |
Private Attributes | |
DsvWriter< Delimiter > | m_writer |
Write records as delimiter-separated values into a text file.
Definition at line 123 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 123 of file dfe_io_dsv.hpp
|
delete |
|
delete |
|
default |
|
default |
|
inline |
Create a file at the given path. Overwrites existing data.
path | Path to the output file |
precision | Output floating point precision |
Definition at line 136 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 136 of file dfe_io_dsv.hpp
|
inline |
Append a record to the file.
Definition at line 142 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 142 of file dfe_io_dsv.hpp
References dfe::io_dsv_impl::NamedTupleDsvWriter< Delimiter, NamedTuple >::append_impl().
Referenced by FW::CsvParticleWriter::writeT(), and FW::CsvPlanarClusterWriter::writeT().
|
inlineprivate |
Definition at line 156 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 156 of file dfe_io_dsv.hpp
References nlohmann::detail::get(), and dfe::io_dsv_impl::NamedTupleDsvWriter< Delimiter, NamedTuple >::m_writer.
Referenced by dfe::io_dsv_impl::NamedTupleDsvWriter< Delimiter, NamedTuple >::append().
|
inlinestaticprivate |
Definition at line 151 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 151 of file dfe_io_dsv.hpp
|
delete |
|
default |
|
private |
Definition at line 149 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 149 of file dfe_io_dsv.hpp
Referenced by dfe::io_dsv_impl::NamedTupleDsvWriter< Delimiter, NamedTuple >::append_impl().