diff options
| author | Stijn Buys <ingar@osirion.org> | 2012-01-15 16:53:40 +0000 | 
|---|---|---|
| committer | Stijn Buys <ingar@osirion.org> | 2012-01-15 16:53:40 +0000 | 
| commit | 47a0d9b5a128ef537693055da194e552476bc2f4 (patch) | |
| tree | c0803a3c38c5c262f5ce841102ca451d7c2b523d /src/filesystem/filestream.h | |
| parent | 945d6f4a31c5e565b1bec23268565569f513842c (diff) | |
added filesystem::OFileStream class.
Diffstat (limited to 'src/filesystem/filestream.h')
| -rw-r--r-- | src/filesystem/filestream.h | 36 | 
1 files changed, 20 insertions, 16 deletions
| diff --git a/src/filesystem/filestream.h b/src/filesystem/filestream.h index ceac6c5..eea2cf9 100644 --- a/src/filesystem/filestream.h +++ b/src/filesystem/filestream.h @@ -28,45 +28,49 @@ public:  	/// name of the file in the virtual filesystem  	inline const std::string &name() const { -		return fstream_name; +		return ifstream_name;  	} -	/// actual dilename +	/// name of the file in the real filesystem  	inline const std::string &filename() const { -		return fstream_filename; +		return ifstream_filename;  	}  private: -	std::string	fstream_name; -	std::string	fstream_filename; +	std::string	ifstream_name; +	std::string	ifstream_filename;  };  /**   * @brief output stream for files in the home directory   */ -/*  class OFileStream : public std::ofstream  {  public: -	IFileStream(const char *filename); +	OFileStream(const char name = 0); +		 +	OFileStream(const char *name); -	IFileStream(const std::string &filename); +	OFileStream(const std::string &name); -	void open(const char *filename); +	void open(const char *name); -	void open(const std::string &filename); +	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() { +		return ofstream_name;		 +	} -	/// system filename -	inline const std::string &filename() { return fstream_filename; } +	/// name of the file in the real filesystem +	inline const std::string &filename() { +		return ofstream_filename; +	}  private: -	std::string	fstream_name; -	std::string	fstream_filename; +	std::string	ofstream_name; +	std::string	ofstream_filename;  }; -*/  } // namespace filesystem | 
