+ fixes #0001237: the project file is not saved when the /tmp directory is full, but the user is not aware of it
This commit is contained in:
@@ -141,6 +141,26 @@ void Writer::clearModes()
|
||||
Modes.clear();
|
||||
}
|
||||
|
||||
void Writer::addError(const std::string& msg)
|
||||
{
|
||||
Errors.push_back(msg);
|
||||
}
|
||||
|
||||
bool Writer::hasErrors() const
|
||||
{
|
||||
return (!Errors.empty());
|
||||
}
|
||||
|
||||
void Writer::clearErrors()
|
||||
{
|
||||
Errors.clear();
|
||||
}
|
||||
|
||||
std::vector<std::string> Writer::getErrors() const
|
||||
{
|
||||
return Errors;
|
||||
}
|
||||
|
||||
std::string Writer::addFile(const char* Name,const Base::Persistence *Object)
|
||||
{
|
||||
// always check isForceXML() before requesting a file!
|
||||
|
||||
@@ -95,6 +95,14 @@ public:
|
||||
void clearModes();
|
||||
//@}
|
||||
|
||||
/** @name Error handling */
|
||||
//@{
|
||||
void addError(const std::string&);
|
||||
bool hasErrors() const;
|
||||
void clearErrors();
|
||||
std::vector<std::string> getErrors() const;
|
||||
//@}
|
||||
|
||||
/** @name pretty formating for XML */
|
||||
//@{
|
||||
/// get the current indentation
|
||||
@@ -118,6 +126,7 @@ protected:
|
||||
};
|
||||
std::vector<FileEntry> FileList;
|
||||
std::vector<std::string> FileNames;
|
||||
std::vector<std::string> Errors;
|
||||
std::set<std::string> Modes;
|
||||
|
||||
short indent;
|
||||
|
||||
Reference in New Issue
Block a user