25 #ifndef LSST_MWI_PERSISTENCE_XMLSTORAGE_H
26 #define LSST_MWI_PERSISTENCE_XMLSTORAGE_H
48 #include <boost/archive/xml_oarchive.hpp>
49 #include <boost/archive/xml_iarchive.hpp>
50 #include <boost/scoped_ptr.hpp>
55 namespace persistence {
59 typedef boost::shared_ptr<XmlStorage>
Ptr;
71 virtual boost::archive::xml_oarchive&
getOArchive(
void);
72 virtual boost::archive::xml_iarchive&
getIArchive(
void);
79 boost::scoped_ptr<boost::archive::xml_oarchive>
_oarchive;
81 boost::scoped_ptr<boost::archive::xml_iarchive>
_iarchive;
virtual ~XmlStorage(void)
Class for XML file storage.
boost::shared_ptr< XmlStorage > Ptr
Class for logical location of a persisted Persistable instance.
Interface for Storage abstract base class.
boost::shared_ptr< Policy > Ptr
virtual void setPolicy(lsst::pex::policy::Policy::Ptr policy)
virtual boost::archive::xml_iarchive & getIArchive(void)
boost::scoped_ptr< std::ifstream > _istream
Underlying input stream.
virtual void startTransaction(void)
virtual void setRetrieveLocation(LogicalLocation const &location)
virtual void endTransaction(void)
virtual void setPersistLocation(LogicalLocation const &location)
boost::scoped_ptr< boost::archive::xml_oarchive > _oarchive
Boost XML output archive.
virtual boost::archive::xml_oarchive & getOArchive(void)
boost::scoped_ptr< boost::archive::xml_iarchive > _iarchive
Boost XML input archive.
boost::scoped_ptr< std::ofstream > _ostream
Underlying output stream.
Abstract base class for storage implementations.