#include <soma-io/writer/pythonwriter.h>
|
| PythonWriter (const std::string &filename, const carto::SyntaxSet &rules=carto::SyntaxSet(), const HelperSet &helpers=HelperSet()) |
|
| PythonWriter (const carto::SyntaxSet &rules=carto::SyntaxSet(), const HelperSet &helpers=HelperSet()) |
|
| PythonWriter (carto::rc_ptr< DataSource > ds, const carto::SyntaxSet &rules=carto::SyntaxSet(), const HelperSet &helpers=HelperSet()) |
| PythonWriter takes ownership of the DataSource. More...
|
|
virtual | ~PythonWriter () |
|
void | open (const std::string &filename) |
|
void | attach (std::ostream &s) |
| attach to an existing (and open) stream More...
|
|
void | attach (carto::rc_ptr< DataSource > ds) |
|
void | close () |
|
virtual std::string | name () const |
|
bool | operator! () const |
|
bool | is_open () const |
|
carto::rc_ptr< DataSource > | dataSource () |
|
const HelperSet & | helpers () const |
| helper functions read basic data type More...
|
|
HelperSet & | helpers () |
|
const carto::SyntaxSet & | syntaxes () const |
|
carto::SyntaxSet & | syntaxes () |
|
void | write (const carto::GenericObject &object, bool writeInternals=false, bool writevariable=true) |
| Writes a generic object to stream. More...
|
|
void | write (const carto::Object &object, bool writeInternals=false, bool writevariable=true) |
|
void | write (const carto::GenericObject &object, int indent, const std::string &syntax="", const std::string &semantic="", bool writeInternals=false) |
| Writes an element according to the syntax. More...
|
|
void | write (const carto::Object &object, int indent, const std::string &syntax="", const std::string &semantic="", bool writeInternals=false) |
| Writes an element according to the syntax. More...
|
|
bool | isInternal (const std::string &syntax, const std::string &semantic) |
|
void | setSingleLineMode (bool x) |
|
bool | singleLine () const |
|
void | setCatchFunction (CatchFunction f) |
| if set, the catch function is used instead of throwing the regular exception during writing More...
|
|
char | quoteCharacter () const |
|
void | setQuoteCharacter (char q) |
|
std::string | noneString () const |
|
void | setNoneString (const std::string &none) |
|
void | writeString (DataSource &, std::string) |
| utility function More...
|
|
Definition at line 56 of file pythonwriter.h.
◆ CatchFunction
◆ Helper
◆ HelperSet
◆ PythonWriter() [1/3]
◆ PythonWriter() [2/3]
◆ PythonWriter() [3/3]
◆ ~PythonWriter()
virtual soma::PythonWriter::~PythonWriter |
( |
| ) |
|
|
virtual |
◆ attach() [1/2]
void soma::PythonWriter::attach |
( |
std::ostream & |
s | ) |
|
attach to an existing (and open) stream
◆ attach() [2/2]
◆ close()
void soma::PythonWriter::close |
( |
| ) |
|
◆ dataSource()
◆ genericSequenceHelper()
◆ helpers() [1/2]
const HelperSet& soma::PythonWriter::helpers |
( |
| ) |
const |
helper functions read basic data type
◆ helpers() [2/2]
◆ init()
void soma::PythonWriter::init |
( |
const HelperSet & |
helpers | ) |
|
|
protected |
◆ is_open()
bool soma::PythonWriter::is_open |
( |
| ) |
const |
◆ isInternal()
bool soma::PythonWriter::isInternal |
( |
const std::string & |
syntax, |
|
|
const std::string & |
semantic |
|
) |
| |
◆ name()
virtual std::string soma::PythonWriter::name |
( |
| ) |
const |
|
virtual |
◆ noneString()
std::string soma::PythonWriter::noneString |
( |
| ) |
const |
|
inline |
◆ open()
void soma::PythonWriter::open |
( |
const std::string & |
filename | ) |
|
◆ operator!()
bool soma::PythonWriter::operator! |
( |
| ) |
const |
◆ quoteCharacter()
char soma::PythonWriter::quoteCharacter |
( |
| ) |
const |
|
inline |
◆ setCatchFunction()
if set, the catch function is used instead of throwing the regular exception during writing
◆ setNoneString()
void soma::PythonWriter::setNoneString |
( |
const std::string & |
none | ) |
|
|
inline |
◆ setQuoteCharacter()
void soma::PythonWriter::setQuoteCharacter |
( |
char |
q | ) |
|
|
inline |
◆ setSingleLineMode()
void soma::PythonWriter::setSingleLineMode |
( |
bool |
x | ) |
|
|
inline |
◆ singleLine()
bool soma::PythonWriter::singleLine |
( |
| ) |
const |
|
inline |
◆ syntaxes() [1/2]
◆ syntaxes() [2/2]
◆ write() [1/4]
void soma::PythonWriter::write |
( |
const carto::GenericObject & |
object, |
|
|
bool |
writeInternals = false , |
|
|
bool |
writevariable = true |
|
) |
| |
Writes a generic object to stream.
◆ write() [2/4]
void soma::PythonWriter::write |
( |
const carto::Object & |
object, |
|
|
bool |
writeInternals = false , |
|
|
bool |
writevariable = true |
|
) |
| |
◆ write() [3/4]
void soma::PythonWriter::write |
( |
const carto::GenericObject & |
object, |
|
|
int |
indent, |
|
|
const std::string & |
syntax = "" , |
|
|
const std::string & |
semantic = "" , |
|
|
bool |
writeInternals = false |
|
) |
| |
Writes an element according to the syntax.
◆ write() [4/4]
void soma::PythonWriter::write |
( |
const carto::Object & |
object, |
|
|
int |
indent, |
|
|
const std::string & |
syntax = "" , |
|
|
const std::string & |
semantic = "" , |
|
|
bool |
writeInternals = false |
|
) |
| |
Writes an element according to the syntax.
◆ writeString()
void soma::PythonWriter::writeString |
( |
DataSource & |
, |
|
|
std::string |
|
|
) |
| |
◆ _catchFunction
◆ _datasource
◆ _helpers
◆ _noneString
std::string soma::PythonWriter::_noneString |
|
protected |
◆ _quoteChar
char soma::PythonWriter::_quoteChar |
|
protected |
◆ _rules
◆ _singleLine
bool soma::PythonWriter::_singleLine |
|
protected |
The documentation for this class was generated from the following files: