50 CsvFile(
const std::string& filename,
char is =
',',
bool ie =
false,
Int first_n = -1);
62 void load(
const std::string& filename,
char is =
',',
bool ie =
false,
Int first_n = -1);
69 void store(
const std::string& filename);
102 std::vector<std::string>::size_type
rowCount()
const;
This class handles csv files. Currently only loading is implemented.
Definition CsvFile.h:31
bool getRow(Size row, StringList &list) const
writes all items from a row to list
void load(const std::string &filename, char is=',', bool ie=false, Int first_n=-1)
Loads data from a text file.
bool itemenclosed_
Definition CsvFile.h:106
void addRow(const StringList &list)
Add a row to the buffer.
void store(const std::string &filename)
Stores the buffer's content into a file.
CsvFile()
Default constructor.
char itemseperator_
Definition CsvFile.h:105
void clear()
Clears the buffer.
std::vector< std::string >::size_type rowCount() const
Returns the number of rows that were loaded from the file.
CsvFile(const std::string &filename, char is=',', bool ie=false, Int first_n=-1)
Constructor with filename.
~CsvFile() override
destructor
int Int
Signed integer type.
Definition Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
std::vector< std::string > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19