This class handles csv files. Currently only loading is implemented.
More...
#include <OpenMS/FORMAT/CsvFile.h>
List of all members.
Detailed Description
This class handles csv files. Currently only loading is implemented.
- Note:
- items are allowed to be enclosed by only one character e.g. "item" where " is enclosing character
Constructor & Destructor Documentation
| CsvFile |
( |
const String & |
filename, |
|
|
char |
is = ',', |
|
|
bool |
ie = false, |
|
|
Int |
first_n = -1 | |
|
) |
| | |
Constructor with filename.
- Parameters:
-
| filename | The input file name. |
| is | character which separates the items. |
| ie | Whether or not every item is enclosed. |
| first_n | Only the given number of lines are read, starting from the beginning of the file. |
- Exceptions:
-
Member Function Documentation
| void fload |
( |
const String & |
filename, |
|
|
char |
is = ',', |
|
|
bool |
ie = false, |
|
|
Int |
first_n = -1 | |
|
) |
| | |
Loads data from a text file.
- Parameters:
-
| filename | The input file name. |
| is | character which separates the items. |
| ie | Whether or not every item is enclosed. |
| first_n | Only the given number of lines are read, starting from the beginning of the file. |
- Exceptions:
-
writes all items from a row to list
- Parameters:
-
| row | the row which will be read |
| list | StringList which will contain all items of the row |
- Exceptions:
-
- Returns:
- returns false if the given row could not be separated into items
Member Data Documentation
| OpenMS / TOPP release 1.10.0 |
Documentation generated on Thu Mar 7 2013 09:42:53 using doxygen 1.7.1 |