diff options
Diffstat (limited to 'src/game/file.h')
-rw-r--r-- | src/game/file.h | 30 |
1 files changed, 30 insertions, 0 deletions
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 <string> +#include <fstream> + +// 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__ |