Factory class for interacting with backend systems used to store/retrieve data used to fill templates.
More...
#include <Datastore.h>
|
virtual Dictionary | load (const std::string &path)=0 |
| Load a dictionary from data stored at the specified path. More...
|
|
virtual Poco::Timestamp | getLastModified (const std::string &path)=0 |
| Return the last modification timestamp value for the data at the specified virtual path in the datastore implementation. More...
|
|
Factory class for interacting with backend systems used to store/retrieve data used to fill templates.
- Date
- Created 2014/10/04 21:38
- Copyright
- Copyright © 2014, Sans Pareil Technologies, Inc.
- Author
- Rakesh
- Version
- Id
- Datastore.h 5632 2014-10-06 22:04:21Z rakesh
- Since
- 1.7
Configuration used to initialise a datastore implementation.
Shared pointer to a template dictionary.
Shared pointer to a datastore implementation.
spt::servlet::templating::Datastore::Datastore |
( |
| ) |
|
|
inlineprotected |
static Ptr spt::servlet::templating::Datastore::getDatastore |
( |
const std::string & |
type, |
|
|
Configuration |
configuration |
|
) |
| |
|
static |
Initialise a datastore of the specified type using the specified configuration.
Configuration may include location on filesystem, datastore connection etc.
- Parameters
-
type | The type of datastore to initialise (file , xapian , mongodb , leveldb , hamsterdb ...) |
configuration | Configuration necessary to properly initialise the datastore |
virtual Poco::Timestamp spt::servlet::templating::Datastore::getLastModified |
( |
const std::string & |
path | ) |
|
|
pure virtual |
Return the last modification timestamp value for the data at the specified virtual path in the datastore implementation.
- Parameters
-
path | The virtual path representing the data in the datastore. |
- Returns
- The last modification timestamp for the data at virtual path.
virtual Dictionary spt::servlet::templating::Datastore::load |
( |
const std::string & |
path | ) |
|
|
pure virtual |
Load a dictionary from data stored at the specified path.
Note: A path is a virtual construct which may indicate the location on filesystem, a key/property used to retrieve from a datastore such as leveldb, mongodb etc.
- Parameters
-
path | The abstract path representing the data to be laoded. |
- Returns
- The dictionary instance with contents of the data at the specified path
The documentation for this class was generated from the following file:
- /Users/rakesh/svn/cpp/web/servlet/src/api/servlet/templating/Datastore.h