Changeset 368
- Timestamp:
- May 31, 2012, 10:15:26 PM (12 years ago)
- Location:
- experimental/distortionNG
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/ReaderWriterDist.cpp
r367 r368 53 53 ReaderWriterDist::ReadResult ReaderWriterDist::readObject( const std::string& file, const Options* options) const 54 54 { 55 // This function must be reimplemented because the osgb|t|x plugin would test for a valid filename extension and thus would block the fiel due to it's .dist extension. 55 56 ReadResult result = ReadResult::FILE_LOADED; 56 57 std::string fileName = file; … … 65 66 ReaderWriterDist::ReadResult ReaderWriterDist::readObject( std::istream& fin, const Options* options ) const 66 67 { 68 // This function uses the osgb|t|x plugin to perform the operation 67 69 if ( rw ) 68 70 { … … 95 97 ReaderWriterDist::WriteResult ReaderWriterDist::writeObject( const osg::Object& object, const std::string& fileName, const osgDB::ReaderWriter::Options* options ) const 96 98 { 99 // This function must be reimplemented because the osgb|t|x plugin would test for a valid filename extension and thus would block the fiel due to it's .dist extension. 97 100 WriteResult result = WriteResult::FILE_SAVED; 98 101 std::ios::openmode mode = std::ios::out; … … 110 113 ReaderWriterDist::WriteResult ReaderWriterDist::writeObject( const osg::Object& object, std::ostream& fout, const osgDB::ReaderWriter::Options* options ) const 111 114 { 115 // This function uses the osgb|t|x plugin to perform the operation 112 116 if ( rw ) 113 117 { -
experimental/distortionNG/ReaderWriterDist.h
r367 r368 20 20 Options* prepareReading( ReadResult& result, std::string& fileName, std::ios::openmode& mode, const Options* options ) const; 21 21 Options* prepareWriting( WriteResult& result, const std::string& fileName, std::ios::openmode& mode, const Options* options ) const; 22 virtual ReadResult readObject( const std::string& file, const osgDB::ReaderWriter::Options* options) const; // passes the call to the stream function23 virtual ReadResult readObject( std::istream& fin, const osgDB::ReaderWriter::Options* options ) const; // passes the call to the readwriter defined in the ctor24 virtual WriteResult writeObject( const osg::Object& object, const std::string& fileName, const osgDB::ReaderWriter::Options* options ) const; // passes the call to the stream function25 virtual WriteResult writeObject( const osg::Object& object, std::ostream& fout, const osgDB::ReaderWriter::Options* options ) const; // passes the call to the readwriter defined in the ctor22 virtual ReadResult readObject( const std::string& file, const osgDB::ReaderWriter::Options* options) const; 23 virtual ReadResult readObject( std::istream& fin, const osgDB::ReaderWriter::Options* options ) const; 24 virtual WriteResult writeObject( const osg::Object& object, const std::string& fileName, const osgDB::ReaderWriter::Options* options ) const; 25 virtual WriteResult writeObject( const osg::Object& object, std::ostream& fout, const osgDB::ReaderWriter::Options* options ) const; 26 26 27 27
Note: See TracChangeset
for help on using the changeset viewer.