TextFileReader reads tuples from CSV file.
More...
#include <reader.h>
|
bool | Open (const std::string &path) override |
|
void | Close () override |
|
bool | Read (std::string *key, std::string *value) override |
|
int | Count () override |
|
void | SeekToFirst () override |
|
std::string | path () |
| return path to text file
|
|
virtual | ~Reader () |
| In case that users forget to call Close() to release resources, e.g., memory, you can release them here. More...
|
|
TextFileReader reads tuples from CSV file.
◆ Close()
void singa::io::TextFileReader::Close |
( |
| ) |
|
|
overridevirtual |
◆ Count()
int singa::io::TextFileReader::Count |
( |
| ) |
|
|
overridevirtual |
◆ Open()
bool singa::io::TextFileReader::Open |
( |
const std::string & |
path | ) |
|
|
overridevirtual |
◆ Read()
bool singa::io::TextFileReader::Read |
( |
std::string * |
key, |
|
|
std::string * |
value |
|
) |
| |
|
overridevirtual |
◆ SeekToFirst()
void singa::io::TextFileReader::SeekToFirst |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file:
- /home/moaz/incubator-singa/include/singa/io/reader.h