|
The Vish Visualization Shell 0.3
Vish
|
Base class for objects that can be saved to some URL. More...
#include <ocean/plankton/VSaver.hpp>
Classes | |
| struct | SaveIterator |
| Accompanying iterator class. More... | |
Public Types | |
| using | save_iterator = std::function< bool(const string &s, VishSaver &VS)> |
| Callback function to iterate over object savers. | |
Public Member Functions | |
| void | addSaver (const string &, const RefPtr< VishSaver > &) |
| Add a save object that is associated with the certain text. | |
| template<class AppClass > | |
| void | addSavers (AppClass &A) |
| To add external savers a derived class call. | |
| bool | autosave () const |
| Save object using the last used saver. | |
| RefPtr< VishSaver > | getMostRecentSaver () const |
| Get the last saver that had been used for this object. | |
| size_t | getNumberOfSavers () const |
| Get the number of savers. | |
| RefPtr< VishSaver > | getSaver (const string &) const |
| Retrieve a saver functor that is associated to the certain text. | |
| RefPtr< VishSaver > | getSaverByExt (const string &ext) const |
| Retrieve a saver functor for the given file extension. | |
| int | iterate_savers (const save_iterator &si) const |
| Iterate over all savers associated with this object. | |
| VSaveable () | |
| Constructor, does nothing. | |
| ~VSaveable () | |
| Destructor, does nothing but automatic cleanup. | |
Static Public Member Functions | |
| static VSaveable & | GlobalState () |
| A global saveable object that is supposed to take care of the entire VISH state. | |
Base class for objects that can be saved to some URL.
This base class is basically a map of strings to VishSaver objects. This string list can be queried using the SaveIterator to find an appropriate saver functor, if there are many.
|
inline |
To add external savers a derived class call.
Get the last saver that had been used for this object.
It is evidently a null pointer if it has never been saved yet.
References MemCore::Ageable::InfinitelyOld(), and MemCore::Ageable::update().