Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2007-10-21 15:18:50 +0000
committerStijn Buys <ingar@osirion.org>2007-10-21 15:18:50 +0000
commit97cbb7514135ec81803e746f0b549e9f95abbecc (patch)
tree6d61b17ed1485a5488522dd41011a4225cde18b0 /src/game/file.h
parent783545505aa51e4f908932fffb1f8362ad898d44 (diff)
added basic file loader
Diffstat (limited to 'src/game/file.h')
-rw-r--r--src/game/file.h30
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__