mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 07:49:56 +00:00
44 lines
No EOL
860 B
C++
44 lines
No EOL
860 B
C++
#ifndef CSM_DOC_SAVINGSTATE_H
|
|
#define CSM_DOC_SAVINGSTATE_H
|
|
|
|
#include <fstream>
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
#include <components/esm/esmwriter.hpp>
|
|
|
|
namespace CSMDoc
|
|
{
|
|
class Operation;
|
|
class Document;
|
|
|
|
class SavingState
|
|
{
|
|
Operation& mOperation;
|
|
boost::filesystem::path mPath;
|
|
boost::filesystem::path mTmpPath;
|
|
ToUTF8::Utf8Encoder mEncoder;
|
|
std::ofstream mStream;
|
|
ESM::ESMWriter mWriter;
|
|
|
|
public:
|
|
|
|
SavingState (Operation& operation);
|
|
|
|
bool hasError() const;
|
|
|
|
void start (Document& document);
|
|
|
|
const boost::filesystem::path& getPath() const;
|
|
|
|
const boost::filesystem::path& getTmpPath() const;
|
|
|
|
std::ofstream& getStream();
|
|
|
|
ESM::ESMWriter& getWriter();
|
|
};
|
|
|
|
|
|
}
|
|
|
|
#endif |