From 4c787abfd7e1e803c3423b419acc3ac839a92803 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 16 Sep 2007 17:45:53 +0000 Subject: [PATCH] Added option for controlling whether output code should write out default values --- include/osgDB/Output | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/osgDB/Output b/include/osgDB/Output index 984a8564f..40033725e 100644 --- a/include/osgDB/Output +++ b/include/osgDB/Output @@ -36,9 +36,12 @@ class OSGDB_EXPORT Output : public std::ofstream virtual ~Output(); - void setOptions(const ReaderWriter::Options* options) { _options = options; } + void setOptions(const ReaderWriter::Options* options); const ReaderWriter::Options* getOptions() const { return _options.get(); } + void setWriteOutDefaultValues(bool flag) { _writeOutDefaultValues = flag; } + bool getWriteOutDefaultValues() const { return _writeOutDefaultValues; } + void open(const char *name); // comment out temporarily to avoid compilation problems, RO Jan 2002. @@ -111,6 +114,7 @@ class OSGDB_EXPORT Output : public std::ofstream bool _outputTextureFiles; unsigned int _textureFileNameNumber; + bool _writeOutDefaultValues; }; }