1 // Copyright (C) 2012 Mathias Froehlich
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License as
5 // published by the Free Software Foundation; either version 2 of the
6 // License, or (at your option) any later version.
8 // This program is distributed in the hope that it will be useful, but
9 // WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #ifndef SIMGEAR_READFILECALLBACK_HXX
19 #define SIMGEAR_READFILECALLBACK_HXX 1
21 #include <osgDB/Callbacks>
25 /// Read file callback that calls also back into the registrys read file callback.
27 class OptionsReadFileCallback : public osgDB::ReadFileCallback {
29 virtual osgDB::ReaderWriter::ReadResult
30 openArchive(const std::string& name, osgDB::ReaderWriter::ArchiveStatus status,
31 unsigned int indexBlockSizeHint, const osgDB::Options* options);
33 virtual osgDB::ReaderWriter::ReadResult
34 readObject(const std::string& name, const osgDB::Options* options);
36 virtual osgDB::ReaderWriter::ReadResult
37 readImage(const std::string& name, const osgDB::Options* options);
39 virtual osgDB::ReaderWriter::ReadResult
40 readHeightField(const std::string& name, const osgDB::Options* options);
42 virtual osgDB::ReaderWriter::ReadResult
43 readNode(const std::string& name, const osgDB::Options* options);
45 virtual osgDB::ReaderWriter::ReadResult
46 readShader(const std::string& name, const osgDB::Options* options);
49 virtual ~OptionsReadFileCallback();