34 #ifndef SOMAIO_WRITER_AWRITER_H 35 #define SOMAIO_WRITER_AWRITER_H 40 #ifndef CARTOBASE_OBJECT_SYNTAX_H 83 const HelperSet& helpers = HelperSet() );
89 const HelperSet& helpers = HelperSet() );
103 void open(
const std::string& filename );
106 void attach( std::ostream & s );
117 virtual std::string name()
const;
128 bool operator!()
const;
132 bool is_open()
const;
144 void writeAttributes(
const carto::GenericObject&
object );
147 void writeAttributes(
const carto::GenericObject&
object,
148 const std::set<std::string>& attributes,
149 std::string::size_type size );
152 void writeAttributes(
const carto::GenericObject*
object )
156 void writeAttributes(
const carto::GenericObject*
object,
157 const std::set<std::string>& attributes,
158 std::string::size_type size )
195 std::string _filename;
std::map< std::string, Syntax > SyntaxSet
To write an AttributedObject to a file.
std::map< std::string, Helper > HelperSet
std::ostream * _stream
C++ stream to write into.
carto::SyntaxSet _rules
rules for every syntactic attribute