To write an AttributedObject to a file.
More...
#include <soma-io/writer/awriter.h>
|
|
| void | open (const std::string &filename) |
| | open a new file More...
|
| |
| void | attach (std::ostream &s) |
| | attach to an existing (and open) stream More...
|
| |
| void | close () |
| | close or detach the stream More...
|
| |
|
| virtual std::string | name () const |
| | name of the file to read from More...
|
| |
To write an AttributedObject to a file.
Definition at line 56 of file awriter.h.
◆ Helper
| typedef void(* soma::AttributedWriter::Helper) (const carto::GenericObject &, const std::string &, std::ostream &) |
◆ HelperSet
◆ AttributedWriter() [1/2]
configure the parametres
- Parameters
-
| filename | name of the file to write into |
| rules | syntactic attribute / rules pairs |
| helpers | writing functions set |
◆ AttributedWriter() [2/2]
configure the parametres
- Parameters
-
| rules | syntactic attribute / rules pairs |
| helpers | writing functions set |
◆ ~AttributedWriter()
| virtual soma::AttributedWriter::~AttributedWriter |
( |
| ) |
|
|
virtual |
◆ attach()
| void soma::AttributedWriter::attach |
( |
std::ostream & |
s | ) |
|
attach to an existing (and open) stream
◆ close()
| void soma::AttributedWriter::close |
( |
| ) |
|
close or detach the stream
◆ is_open()
| bool soma::AttributedWriter::is_open |
( |
| ) |
const |
is the stream open?
- Returns
- ifstream::is_open()
◆ name()
| virtual std::string soma::AttributedWriter::name |
( |
| ) |
const |
|
virtual |
name of the file to read from
◆ open()
| void soma::AttributedWriter::open |
( |
const std::string & |
filename | ) |
|
open a new file
- Parameters
-
| filename | name of the file to write into |
◆ operator!()
| bool soma::AttributedWriter::operator! |
( |
| ) |
const |
return the status of the stream
- Returns
- true if ifstream::operator!() returns true
◆ writeAttributes() [1/4]
◆ writeAttributes() [2/4]
| void soma::AttributedWriter::writeAttributes |
( |
const carto::GenericObject & |
object, |
|
|
const std::set< std::string > & |
attributes, |
|
|
std::string::size_type |
size |
|
) |
| |
|
protected |
◆ writeAttributes() [3/4]
◆ writeAttributes() [4/4]
| void soma::AttributedWriter::writeAttributes |
( |
const carto::GenericObject * |
object, |
|
|
const std::set< std::string > & |
attributes, |
|
|
std::string::size_type |
size |
|
) |
| |
|
protected |
◆ _ownStream
| bool soma::AttributedWriter::_ownStream |
|
protected |
◆ _rules
rules for every syntactic attribute
Definition at line 169 of file awriter.h.
◆ _stream
| std::ostream* soma::AttributedWriter::_stream |
|
protected |
C++ stream to write into.
Definition at line 172 of file awriter.h.
The documentation for this class was generated from the following file: