Skip to content

Commit

Permalink
Added option for controlling whether output code should write out def…
Browse files Browse the repository at this point in the history
…ault values
  • Loading branch information
robertosfield committed Sep 16, 2007
1 parent e9017d0 commit 753fc5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/osgDB/Output
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -111,6 +114,7 @@ class OSGDB_EXPORT Output : public std::ofstream
bool _outputTextureFiles;
unsigned int _textureFileNameNumber;

bool _writeOutDefaultValues;
};

}
Expand Down

0 comments on commit 753fc5f

Please sign in to comment.