39 # define __attribute__(x)
45 #include <boost/format.hpp>
53 namespace persistence {
58 _ostream(0), _istream(0), _oarchive(0), _iarchive(0) {
85 char const* fname = location.
locString().c_str();
86 if (::access(fname, R_OK | F_OK) != 0) {
91 _istream.reset(
new std::ifstream(fname));
boost::scoped_ptr< std::ofstream > _ostream
Output stream.
Class for logical location of a persisted Persistable instance.
virtual boost::archive::text_iarchive & getIArchive(void)
boost::shared_ptr< Policy > Ptr
virtual void setRetrieveLocation(LogicalLocation const &location)
boost::scoped_ptr< boost::archive::text_oarchive > _oarchive
boost::serialization archive wrapper for output stream.
std::string const & locString(void) const
virtual ~BoostStorage(void)
virtual void startTransaction(void)
#define LSST_EXCEPT(type,...)
virtual boost::archive::text_oarchive & getOArchive(void)
virtual void endTransaction(void)
void verifyPathName(std::string const &pathName)
boost::scoped_ptr< boost::archive::text_iarchive > _iarchive
boost::serialization archive wrapper for input stream.
boost::scoped_ptr< std::ifstream > _istream
Input stream.
Interface for LogicalLocation class.
virtual void setPolicy(lsst::pex::policy::Policy::Ptr policy)
virtual void setPersistLocation(LogicalLocation const &location)
Abstract base class for storage implementations.
Interface for BoostStorage class.