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>2009-02-08 15:27:59 +0000
committerStijn Buys <ingar@osirion.org>2009-02-08 15:27:59 +0000
commit2386bda56b33de68370fa8acc76e39ddddd836c6 (patch)
tree6de102324d33a70625c90c5839c17dcdc26ac47d /src/filesystem/filestream.h
parentc8a6ff1c0693ca1bd9025dcbdd7c22e3d193f8dd (diff)
changed inifile and map to use filesystem::IFileStream
Diffstat (limited to 'src/filesystem/filestream.h')
-rw-r--r--src/filesystem/filestream.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filesystem/filestream.h b/src/filesystem/filestream.h
index 7dddda9..9739f38 100644
--- a/src/filesystem/filestream.h
+++ b/src/filesystem/filestream.h
@@ -18,7 +18,7 @@ namespace filesystem
class IFileStream : public std::ifstream
{
public:
- IFileStream(const char *name);
+ IFileStream(const char *name = 0);
IFileStream(const std::string &name);
@@ -27,10 +27,10 @@ public:
void open(const std::string &name);
/// name of the file in the virtual filesystem
- inline const std::string &name() { return fstream_name; }
+ inline const std::string &name() const { return fstream_name; }
- /// system filename
- inline const std::string &filename() { return fstream_filename; }
+ /// actual dilename
+ inline const std::string &filename() const { return fstream_filename; }
private:
std::string fstream_name;