namespace alps { class OXDRDump : public ODump { public: OXDRDump(); protected: uint32_t getPosition() const; void setPosition(uint32_t pos); }; class IXDRDump : public IDump { public: IXDRDump(); protected: uint32_t getPosition() const; void setPosition(uint32_t pos); }; class OXDRFileDump: public OXDRDump { public: OXDRFileDump(const boost::filesystem::path& p); }; class IXDRFileDump: public IXDRDump { public: IXDRFileDump(const boost::filesystem::path& p); #ifdef BOOST_NO_EXCEPTIONS bool couldOpen() const; #endif }; }
returns the current position in the XDR dump.uint32_t getPosition() const;
sets the XDR dump to a new position.void setPosition(uint32_t pos);
returns the current position in the XDR dump.uint32_t getPosition() const;
sets the XDR dump to a new position.void setPosition(uint32_t pos);
opens a file with the given name for writing using the serialization mechansim.OXDRFileDump(const boost::filesystem::path& p);
opens a file with the given name for reading using the serialization mechansim. If opening fails and exceptions are implemented/enabled a std::runtime_error is thrown. If opening fails and exceptions are disabled, the function couldOpen() returns false.IXDRFileDump(const boost::filesystem::path& p);
is implemented only when exceptions are disabled. It returns true if the opening of a file succeeded, and false otherwise. A failure to open a file results in a std::runtime_error if exceptions are implemented.#ifdef BOOST_NO_EXCEPTIONS bool couldOpen() const; #endif
copyright (c) 1994-2010 by Matthias Troyer
Distributed under the Boost Software License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt)