lsst.daf.persistence
13.0-37-g9bb0735
|
Class for boost::serialization storage. More...
#include <BoostStorage.h>
Public Types | |
typedef std::shared_ptr < BoostStorage > | Ptr |
typedef std::vector< Ptr > | List |
Public Member Functions | |
BoostStorage (void) | |
Constructor. More... | |
virtual | ~BoostStorage (void) |
Destructor. More... | |
virtual void | setPolicy (lsst::pex::policy::Policy::Ptr policy) |
Allow a Policy to be used to configure the BoostStorage. More... | |
virtual void | setPersistLocation (LogicalLocation const &location) |
Set the destination of the serialization file for persistence. More... | |
virtual void | setRetrieveLocation (LogicalLocation const &location) |
Set the source of the serialization file for retrieval. More... | |
virtual void | startTransaction (void) |
Start a transaction. More... | |
virtual void | endTransaction (void) |
End a transaction. More... | |
virtual boost::archive::text_oarchive & | getOArchive (void) |
Get a boost::serialization archive suitable for output. More... | |
virtual boost::archive::text_iarchive & | getIArchive (void) |
Get a boost::serialization archive suitable for input. More... | |
Static Public Member Functions | |
static Ptr | createInstance (std::string const &name, LogicalLocation const &location, bool persist, lsst::pex::policy::Policy::Ptr policy) |
Create and configure a FormatterStorage subclass instance. More... | |
Protected Member Functions | |
void | verifyPathName (std::string const &pathName) |
Ensure that all directories along a path exist, creating them if necessary. More... | |
Class for boost::serialization storage.
Uses boost::serialization to persist to files.
Definition at line 59 of file BoostStorage.h.
|
inherited |
Definition at line 63 of file FormatterStorage.h.
typedef std::shared_ptr<BoostStorage> lsst::daf::persistence::BoostStorage::Ptr |
Definition at line 61 of file BoostStorage.h.
lsst::daf::persistence::BoostStorage::BoostStorage | ( | void | ) |
Constructor.
Definition at line 57 of file BoostStorage.cc.
|
virtual |
Destructor.
Definition at line 63 of file BoostStorage.cc.
|
staticinherited |
Create and configure a FormatterStorage subclass instance.
[in] | name | Name of subclass |
[in] | location | Location to persist to or retrieve from |
[in] | persist | True if persisting, false if retrieving |
[in] | policy | Policy used to configure the FormatterStorage |
Definition at line 75 of file FormatterStorage.cc.
|
virtual |
End a transaction.
No transaction support for now.
Implements lsst::daf::persistence::FormatterStorage.
Definition at line 104 of file BoostStorage.cc.
|
virtual |
Get a boost::serialization
archive suitable for input.
Definition at line 121 of file BoostStorage.cc.
|
virtual |
Get a boost::serialization
archive suitable for output.
Definition at line 114 of file BoostStorage.cc.
|
virtual |
Set the destination of the serialization file for persistence.
[in] | location | Pathname to write to. |
Implements lsst::daf::persistence::FormatterStorage.
Definition at line 75 of file BoostStorage.cc.
|
virtual |
Allow a Policy to be used to configure the BoostStorage.
[in] | policy |
Implements lsst::daf::persistence::FormatterStorage.
Definition at line 69 of file BoostStorage.cc.
|
virtual |
Set the source of the serialization file for retrieval.
[in] | location | Pathname to read from. |
Implements lsst::daf::persistence::FormatterStorage.
Definition at line 84 of file BoostStorage.cc.
|
virtual |
Start a transaction.
No transaction support for now.
Implements lsst::daf::persistence::FormatterStorage.
Definition at line 98 of file BoostStorage.cc.
|
protectedinherited |
Ensure that all directories along a path exist, creating them if necessary.
[in] | name | Pathname to file to be created |
Definition at line 93 of file FormatterStorage.cc.