ConfigDB::DatabaseTemplate< ClassType > Class Template Reference
Used by code generator to create specific template for Database
More...
#include <Database.h>
Inheritance diagram for ConfigDB::DatabaseTemplate< ClassType >:
Collaboration diagram for ConfigDB::DatabaseTemplate< ClassType >:
Public Member Functions | |
| DatabaseTemplate (const String &path) | |
Public Member Functions inherited from ConfigDB::Database | |
| Database (const DatabaseInfo &typeinfo, const String &path) | |
| Database instance. More... | |
| virtual | ~Database () |
| String | getName () const |
| String | getPath () const |
| StoreRef | openStore (unsigned index) |
| Open a store instance, load it and return a shared pointer. More... | |
| StoreUpdateRef | openStoreForUpdate (unsigned index) |
| void | checkStoreRef (const StoreRef &ref) |
| Called from StoreRef destructor so database can manage caches. More... | |
| void | queueUpdate (Store &store, Object::UpdateCallback &&callback) |
| Queue an asynchronous update. More... | |
| void | checkUpdateQueue (Store &store) |
| Called by Store on completion of update so any queued updates can be started. More... | |
| bool | save (Store &store) const |
| Called from Store::commit. More... | |
| StoreUpdateRef | lockStore (StoreRef &store) |
| Lock a store for writing (called by Object) More... | |
| virtual const Format & | getFormat (const Store &store) const |
| Get the storage format to use for a store. More... | |
| virtual bool | handleFormatError (FormatError err, const Object &object, const String &arg) |
| Called during import. More... | |
| std::unique_ptr< ExportStream > | createExportStream (const Format &format, const String &path=nullptr, const ExportOptions &options={}) |
| Create a read-only stream for serializing the database. More... | |
| size_t | exportToStream (const Format &format, Print &output, const ExportOptions &options={}) |
| Serialize the database to a stream. More... | |
| bool | exportToFile (const Format &format, const String &filename, const ExportOptions &options={}) |
| Serialize the database to a single file. More... | |
| Status | importFromStream (const Format &format, Stream &source) |
| De-serialize the entire database from a stream. More... | |
| Status | importFromFile (const Format &format, const String &filename) |
| De-serialize the entire database from a file. More... | |
| std::unique_ptr< ImportStream > | createImportStream (const Format &format) |
| Create a write-only stream for de-serializing the database. More... | |
Additional Inherited Members | |
Public Attributes inherited from ConfigDB::Database | |
| const DatabaseInfo & | typeinfo |
Detailed Description
template<class ClassType>
class ConfigDB::DatabaseTemplate< ClassType >
Used by code generator to create specific template for Database
- Template Parameters
-
ClassType Concrete type provided by code generator
Constructor & Destructor Documentation
◆ DatabaseTemplate()
template<class ClassType >
|
inline |
The documentation for this class was generated from the following file:
Public Member Functions inherited from
1.9.1