56 void load(
const String& filename,
char is =
',',
bool ie =
false,
Int first_n = -1);
96 std::vector<String>::size_type
rowCount()
const;
This class handles csv files. Currently only loading is implemented. Does NOT support comment lines!
Definition: CsvFile.h:25
std::vector< String >::size_type rowCount() const
Returns the number of rows that were loaded from the file.
bool getRow(Size row, StringList &list) const
writes all items from a row to list
void store(const String &filename)
Stores the buffer's content into a file.
bool itemenclosed_
Definition: CsvFile.h:100
void addRow(const StringList &list)
Add a row to the buffer.
CsvFile(const String &filename, char is=',', bool ie=false, Int first_n=-1)
Constructor with filename.
CsvFile()
Default constructor.
char itemseperator_
Definition: CsvFile.h:99
void clear()
Clears the buffer.
void load(const String &filename, char is=',', bool ie=false, Int first_n=-1)
Loads data from a text file.
~CsvFile() override
destructor
A more convenient string class.
Definition: String.h:34
Definition: TextFile.h:21
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< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19