EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Read arbitrary data as delimiter-separated values from a text file. More...
#include <acts/blob/sPHENIX/thirdparty/dfelibs/dfe/dfe_io_dsv.hpp>
Public Member Functions | |
DsvReader ()=delete | |
DsvReader (const DsvReader &)=delete | |
DsvReader (DsvReader &&)=default | |
~DsvReader ()=default | |
DsvReader & | operator= (const DsvReader &)=delete |
DsvReader & | operator= (DsvReader &&)=default |
DsvReader (const std::string &path) | |
bool | read (std::vector< std::string > &columns) |
std::size_t | num_lines () const |
Return the number of lines read so far. | |
Private Attributes | |
std::ifstream | m_file |
std::string | m_line |
std::size_t | m_num_lines = 0 |
Read arbitrary data as delimiter-separated values from a text file.
Definition at line 92 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 92 of file dfe_io_dsv.hpp
|
delete |
|
delete |
|
default |
|
default |
|
inline |
Open a file at the given path.
path | Path to the input file |
Definition at line 346 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 346 of file dfe_io_dsv.hpp
References dfe::io_dsv_impl::DsvReader< Delimiter >::m_file.
|
inline |
Return the number of lines read so far.
Definition at line 113 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 113 of file dfe_io_dsv.hpp
References dfe::io_dsv_impl::DsvReader< Delimiter >::m_num_lines.
|
delete |
|
default |
|
inline |
Read the next line from the file.
Definition at line 355 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 355 of file dfe_io_dsv.hpp
References getline, pos(), and nlohmann::to_string().
|
private |
Definition at line 116 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 116 of file dfe_io_dsv.hpp
Referenced by dfe::io_dsv_impl::DsvReader< Delimiter >::DsvReader().
|
private |
Definition at line 117 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 117 of file dfe_io_dsv.hpp
|
private |
Definition at line 118 of file dfe_io_dsv.hpp.
View newest version in sPHENIX GitHub at line 118 of file dfe_io_dsv.hpp
Referenced by dfe::io_dsv_impl::DsvReader< Delimiter >::num_lines().