#include <exporter.hh>

Public Member Functions | |
| virtual void | save (std::string const &file_name, utilmm::config_set const &config, Registry const ®istry) |
| virtual void | save (std::ostream &stream, utilmm::config_set const &config, Registry const ®istry) |
| virtual bool | save (std::ostream &stream, Registry const ®istry) |
| virtual bool | save (std::ostream &stream, RegistryIterator const &type)=0 |
| virtual | ~Exporter () |
Protected Member Functions | |
| virtual void | begin (std::ostream &stream, Registry const ®istry) |
| virtual void | end (std::ostream &stream, Registry const ®istry) |
Base class for export objects
Definition at line 32 of file exporter.hh.
| virtual Typelib::Exporter::~Exporter | ( | ) | [inline, virtual] |
Definition at line 45 of file exporter.hh.
| void Exporter::begin | ( | std::ostream & | stream, |
| Registry const & | registry | ||
| ) | [protected, virtual] |
Called by save to add a preamble before saving all registry types
Reimplemented in TlbExport.
Definition at line 130 of file exporter.cc.
| void Exporter::end | ( | std::ostream & | stream, |
| Registry const & | registry | ||
| ) | [protected, virtual] |
Called by save to add data after saving all registry types
Reimplemented in IDLExport, and TlbExport.
Definition at line 131 of file exporter.cc.
| void Exporter::save | ( | std::string const & | file_name, |
| utilmm::config_set const & | config, | ||
| Registry const & | registry | ||
| ) | [virtual] |
Serialize a whole registry in a file
Definition at line 14 of file exporter.cc.
| void Exporter::save | ( | std::ostream & | stream, |
| utilmm::config_set const & | config, | ||
| Registry const & | registry | ||
| ) | [virtual] |
Serialize a whole registry using this exporter
The default implementation calls begin(), iterates on all elements in registry, taking into account dependencies (i.e. a type will be serialized before another type which references it) and finally calls end()
| UnsupportedType | if a type cannot be serialized in this format. In particular, this is thrown if the registry contains recursive types |
| ExportError | for all export errors |
Reimplemented in IDLExport.
Definition at line 20 of file exporter.cc.
| bool Exporter::save | ( | std::ostream & | stream, |
| Registry const & | registry | ||
| ) | [virtual] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This version of save is provided for backward-compatibility only
Definition at line 121 of file exporter.cc.
| virtual bool Typelib::Exporter::save | ( | std::ostream & | stream, |
| RegistryIterator const & | type | ||
| ) | [pure virtual] |