#include <typelib/exporter.hh>
Public Member Functions | |
virtual | ~Exporter () |
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 void | save (std::ostream &stream, RegistryIterator const &type)=0 |
Protected Member Functions | |
virtual void | begin (std::ostream &stream, Registry const ®istry) |
virtual void | end (std::ostream &stream, Registry const ®istry) |
virtual Typelib::Exporter::~Exporter | ( | ) | [inline, virtual] |
void Exporter::begin | ( | std::ostream & | stream, | |
Registry const & | registry | |||
) | [protected, virtual] |
void Exporter::end | ( | std::ostream & | stream, | |
Registry const & | registry | |||
) | [protected, virtual] |
void Exporter::save | ( | std::string const & | file_name, | |
utilmm::config_set const & | config, | |||
Registry const & | registry | |||
) | [virtual] |
Serialize a whole registry in a file
Referenced by Typelib::PluginManager::save(), and save().
void Exporter::save | ( | std::ostream & | stream, | |
utilmm::config_set const & | config, | |||
Registry const & | registry | |||
) | [virtual] |
Serialize a whole registry using this exporter
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 |
References Typelib::Registry::begin(), begin(), end(), Typelib::Registry::end(), save(), and Typelib::Registry::size().
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
References save().
virtual void Typelib::Exporter::save | ( | std::ostream & | stream, | |
RegistryIterator const & | type | |||
) | [pure virtual] |
Serialize one type in stream
. It is called by Registry::save(ostream&, Registry const&)