GnuCash
5.6-150-g038405b370+
|
Public Member Functions | |
QofBackendProvider (const char *name, const char *type) | |
QofBackendProvider (QofBackendProvider &)=delete | |
QofBackendProvider (QofBackendProvider &&)=delete | |
virtual QofBackend * | create_backend (void)=0 |
Return a new, fully initialized backend. More... | |
virtual bool | type_check (const char *)=0 |
Distinguish two providers with same access method. More... | |
Data Fields | |
const char * | provider_name |
Some arbitrary name given for this particular backend provider. | |
const char * | access_method |
The access method that this provider provides, for example, file:// http:// postgres:// or sqlite://, but without the :// at the end. | |
Definition at line 30 of file gnc-backend-prov.hpp.
|
pure virtual |
Return a new, fully initialized backend.
If the backend supports configuration, all configuration options should be initialised to usable values here.
Implemented in QofXmlBackendProvider, and QofDbiBackendProvider< Type >.
|
pure virtual |
Distinguish two providers with same access method.
More than 1 backend can be registered under the same access_method, so each one is passed the path to the data (e.g. a file) and should return TRUE only:
if the path contains no data but can be used (e.g. a new session).
Implemented in QofDbiBackendProvider< Type >, QofDbiBackendProvider< Type >, and QofXmlBackendProvider.