OpenMW
Public Member Functions | Private Attributes
CSMDoc::SavingState Class Reference

#include <savingstate.hpp>

List of all members.

Public Member Functions

 SavingState (Operation &operation, const boost::filesystem::path &projectPath)
bool hasError () const
void start (Document &document, bool project)
const boost::filesystem::path & getPath () const
const boost::filesystem::path & getTmpPath () const
std::ofstream & getStream ()
ESM::ESMWritergetWriter ()
bool isProjectFile () const
 Currently saving project file? (instead of content file)

Private Attributes

OperationmOperation
boost::filesystem::path mPath
boost::filesystem::path mTmpPath
ToUTF8::Utf8Encoder mEncoder
std::ofstream mStream
ESM::ESMWriter mWriter
boost::filesystem::path mProjectPath
bool mProjectFile

Constructor & Destructor Documentation

CSMDoc::SavingState::SavingState ( Operation operation,
const boost::filesystem::path &  projectPath 
)

Member Function Documentation

const boost::filesystem::path & CSMDoc::SavingState::getPath ( ) const
std::ofstream & CSMDoc::SavingState::getStream ( )
const boost::filesystem::path & CSMDoc::SavingState::getTmpPath ( ) const

Currently saving project file? (instead of content file)

void CSMDoc::SavingState::start ( Document document,
bool  project 
)
Parameters:
projectSave project file instead of content file.

Member Data Documentation

boost::filesystem::path CSMDoc::SavingState::mPath [private]
boost::filesystem::path CSMDoc::SavingState::mProjectPath [private]
std::ofstream CSMDoc::SavingState::mStream [private]
boost::filesystem::path CSMDoc::SavingState::mTmpPath [private]

The documentation for this class was generated from the following files: