To read GenericObject from a file.
More...
#include <soma-io/reader/areader.h>
To read GenericObject from a file.
Definition at line 55 of file areader.h.
◆ Helper
◆ HelperSet
◆ AttributedReader() [1/3]
◆ AttributedReader() [2/3]
configure the parametres
- Parameters
-
filename | name of the file to read into |
rules | list of all possible semantic attributes |
helpers | for reading basic data types |
◆ AttributedReader() [3/3]
configure the parametres
- Parameters
-
rules | list of all possible semantic attributes |
helpers | for reading basic data types |
◆ ~AttributedReader()
virtual soma::AttributedReader::~AttributedReader |
( |
| ) |
|
|
virtual |
◆ attach() [1/2]
◆ attach() [2/2]
void soma::AttributedReader::attach |
( |
std::istream & |
stream, |
|
|
int |
line_num = 1 |
|
) |
| |
attach to an existing istream
◆ close()
void soma::AttributedReader::close |
( |
| ) |
|
detach or close the stream
◆ dataSource()
◆ eof()
bool soma::AttributedReader::eof |
( |
| ) |
const |
have we hit EOF?
- Returns
- true if EOF already hit, false otherwise
◆ is_open()
bool soma::AttributedReader::is_open |
( |
| ) |
const |
is the stream open?
- Returns
- ifstream::is_open()
◆ line()
int soma::AttributedReader::line |
( |
| ) |
const |
◆ name()
virtual std::string soma::AttributedReader::name |
( |
| ) |
const |
|
virtual |
name of the file to read from
◆ open()
void soma::AttributedReader::open |
( |
const std::string & |
filename | ) |
|
open a new file
- Parameters
-
filename | name of the file to read from |
◆ operator!()
bool soma::AttributedReader::operator! |
( |
| ) |
const |
return the status of the stream
- Returns
- true if ifstream::operator!() returns true
◆ readAttribute() [1/2]
void soma::AttributedReader::readAttribute |
( |
carto::GenericObject & |
object, |
|
|
const std::string & |
semantic |
|
) |
| |
|
protected |
construct the value of a semantic attribute
- Parameters
-
object | GenericObject to attach to |
semantic | semantic attribute name |
◆ readAttribute() [2/2]
void soma::AttributedReader::readAttribute |
( |
carto::GenericObject * |
object, |
|
|
const std::string & |
semantic |
|
) |
| |
|
protected |
◆ _datasource
filtering stream to read from
Definition at line 187 of file areader.h.
◆ _helpers
helper functions read basic data type
Definition at line 190 of file areader.h.
◆ _rules
rules for every syntactic attribute
Definition at line 184 of file areader.h.
The documentation for this class was generated from the following file: