From 97cbb7514135ec81803e746f0b549e9f95abbecc Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 21 Oct 2007 15:18:50 +0000 Subject: added basic file loader --- src/game/file.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/game/file.h (limited to 'src/game/file.h') diff --git a/src/game/file.h b/src/game/file.h new file mode 100644 index 0000000..ebdff9e --- /dev/null +++ b/src/game/file.h @@ -0,0 +1,30 @@ +/* file.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_FILE_H__ +#define __INCLUDED_FILE_H__ + +// C++ headers +#include +#include + +// project headers +#include "game.h" + + +namespace game { + +/// a class to open data files +class File : public std::ifstream +{ +public: + /// open the file for reading + void open(const char * filename, std::ios_base::openmode mode = std::ios_base::in ); + +}; // class File + +} // namesoace game + +#endif // __INCLUDED_GAME_H__ -- cgit v1.2.3