ATLAS Offline Software
|
#include <CSVWrapper.h>
Public Types | |
using | tableline = std::vector< std::string > |
Public Member Functions | |
CSVWrapper () | |
CSVWrapper (std::ifstream &inputfile) | |
std::shared_ptr< tableline > | FindLine (const std::vector< std::pair< int, std::string >> &argumentpairs) |
std::vector< std::shared_ptr< tableline > > | FindLines (const std::vector< std::pair< int, std::string >> &argumentpairs) |
tableline | GetLine (const int element) const |
void | PrintTable (bool sample=false) const |
Private Member Functions | |
std::vector< CSVWrapper::tableline > | QueryTable (const std::vector< std::pair< int, std::string >> &argumentpairs) |
std::vector< bool > | ComparePreviousSearch (const std::vector< std::pair< int, std::string >> &argumentpairs) |
Private Attributes | |
bool | m_valid |
bool | m_firstsearch |
std::vector< tableline > | m_table |
size_t | m_columnwidth |
std::vector< std::pair< int, std::string > > | m_prevsearch |
std::vector< std::vector< tableline > > | m_previousresults |
Class used to read in/out/print csv tables of mappings written by generateMapping.py in efexControl to use in place of currently missing database solutions
Definition at line 8 of file CSVWrapper.h.
using CSVWrapper::tableline = std::vector<std::string> |
Definition at line 10 of file CSVWrapper.h.
CSVWrapper::CSVWrapper | ( | ) |
CSVWrapper::CSVWrapper | ( | std::ifstream & | inputfile | ) |
Definition at line 12 of file CSVWrapper.cxx.
|
private |
Definition at line 126 of file CSVWrapper.cxx.
std::shared_ptr< CSVWrapper::tableline > CSVWrapper::FindLine | ( | const std::vector< std::pair< int, std::string >> & | argumentpairs | ) |
argumentpairs | a vector of search inputs where the 1st value is the column index and the second |
Definition at line 45 of file CSVWrapper.cxx.
std::vector< std::shared_ptr< CSVWrapper::tableline > > CSVWrapper::FindLines | ( | const std::vector< std::pair< int, std::string >> & | argumentpairs | ) |
argumentpairs | a vector of search inputs where the 1st value is the column index and the second |
Definition at line 78 of file CSVWrapper.cxx.
CSVWrapper::tableline CSVWrapper::GetLine | ( | const int | element | ) | const |
Definition at line 100 of file CSVWrapper.cxx.
void CSVWrapper::PrintTable | ( | bool | sample = false | ) | const |
sample | bool defaulted to false that when true prints only the last 100 lines |
Definition at line 110 of file CSVWrapper.cxx.
|
private |
Definition at line 144 of file CSVWrapper.cxx.
|
private |
Definition at line 30 of file CSVWrapper.h.
|
private |
Definition at line 28 of file CSVWrapper.h.
|
private |
Definition at line 32 of file CSVWrapper.h.
|
private |
Definition at line 31 of file CSVWrapper.h.
|
private |
Definition at line 29 of file CSVWrapper.h.
|
private |
Definition at line 27 of file CSVWrapper.h.