Support to write vector list and float lists in old format, fix issues in property editor, move back to float for curvature type

This commit is contained in:
wmayer
2013-03-30 12:32:53 +01:00
parent bb63f7a4d5
commit ad49408c58
13 changed files with 64 additions and 167 deletions

View File

@@ -49,7 +49,7 @@ using namespace zipios;
// ---------------------------------------------------------------------------
Writer::Writer(void)
: indent(0),forceXML(false)
: indent(0),forceXML(false),fileVersion(1)
{
indBuf[0] = '\0';
}
@@ -98,6 +98,16 @@ bool Writer::isForceXML(void)
return forceXML;
}
void Writer::setFileVersion(int v)
{
fileVersion = v;
}
int Writer::getFileVersion() const
{
return fileVersion;
}
std::string Writer::addFile(const char* Name,const Base::Persistence *Object)
{
// always check isForceXML() before requesting a file!