25 #ifndef LSST_MWI_PERSISTENCE_BOOSTSTORAGE_H
26 #define LSST_MWI_PERSISTENCE_BOOSTSTORAGE_H
49 #include <boost/archive/text_oarchive.hpp>
50 #include <boost/archive/text_iarchive.hpp>
51 #include <boost/scoped_ptr.hpp>
56 namespace persistence {
60 typedef boost::shared_ptr<BoostStorage>
Ptr;
72 virtual boost::archive::text_oarchive&
getOArchive(
void);
73 virtual boost::archive::text_iarchive&
getIArchive(
void);
78 boost::scoped_ptr<boost::archive::text_oarchive>
_oarchive;
80 boost::scoped_ptr<boost::archive::text_iarchive>
_iarchive;
boost::scoped_ptr< std::ofstream > _ostream
Output stream.
Class for logical location of a persisted Persistable instance.
virtual boost::archive::text_iarchive & getIArchive(void)
Interface for Storage abstract base class.
boost::shared_ptr< Policy > Ptr
boost::shared_ptr< BoostStorage > Ptr
virtual void setRetrieveLocation(LogicalLocation const &location)
boost::scoped_ptr< boost::archive::text_oarchive > _oarchive
boost::serialization archive wrapper for output stream.
virtual ~BoostStorage(void)
virtual void startTransaction(void)
virtual boost::archive::text_oarchive & getOArchive(void)
virtual void endTransaction(void)
Class for boost::serialization storage.
boost::scoped_ptr< boost::archive::text_iarchive > _iarchive
boost::serialization archive wrapper for input stream.
boost::scoped_ptr< std::ifstream > _istream
Input stream.
virtual void setPolicy(lsst::pex::policy::Policy::Ptr policy)
virtual void setPersistLocation(LogicalLocation const &location)
Abstract base class for storage implementations.