#include "tsv_parser.h"
#include <fstream>
#include <sstream>
Go to the source code of this file.
|
| static std::vector< std::string > | split (const std::string &str, char delim) |
| | Splits a given string into words by a given delimiter. More...
|
| |
| void | parse_TSV (const std::string &filename, DataModel &dm) |
| | Parses FCS file and fills DataModel data. More...
|
| |
◆ parse_TSV()
| void parse_TSV |
( |
const std::string & |
file_path, |
|
|
DataModel & |
dm |
|
) |
| |
Parses FCS file and fills DataModel data.
- Parameters
-
| [in] | file_path | File path to the FCS file. |
| [out] | dm | DataModel instance filled by data from parsed FCS file. |
- Exceptions
-
| std::domain_error | Throws when the file cannot be opened. |
| std::length_error | Throws when some row has different number of columns than is the dimension of the data. |
Definition at line 50 of file tsv_parser.cpp.
◆ split()
| static std::vector< std::string > split |
( |
const std::string & |
str, |
|
|
char |
delim |
|
) |
| |
|
static |
Splits a given string into words by a given delimiter.
- Parameters
-
| str | Input string for splitting. |
| delim | Delimiter used for splitting. |
- Returns
- std::vector<std::string> Array of resulting words.
- Todo:
- TODO replace by inplace ops
Definition at line 36 of file tsv_parser.cpp.