![]() |
Zen
A cross-platform functional programming language
|
Class encapsulating output file stream. More...
#include <CppGen.hpp>
Public Member Functions | |
| OutFile () | |
| Default constructor. | |
| ~OutFile () | |
| Destructor - closes the file and the stream if open. | |
| void | open (const Build::Project &project, const z::string &dir, const z::string &filename, const z::string &ext) |
| Function for opening a file and a output stream. | |
| void | close () |
| Function for closing the file and the stream. | |
| z::string | getFilename () const |
| Returns the full filename of the file. | |
| z::stream & | operator() () |
| Returns a reference to the output stream. | |
Private Attributes | |
| z::file | _file |
| Output file. | |
| z::filestream | _stream |
| Output stream. | |
Class encapsulating output file stream.
This class is responsible for opening and closing an output file and the associated stream. It is used by ProGen and by CppGen.
| z::string getFilename | ( | ) | const [inline] |
Returns the full filename of the file.
| void open | ( | const Build::Project & | project, |
| const z::string & | dir, | ||
| const z::string & | filename, | ||
| const z::string & | ext | ||
| ) |
Function for opening a file and a output stream.
| project | The project definition |
| dir | The directory where the file should be located |
| filename | The base name of the file |
| ext | The file extension |
| z::stream& operator() | ( | ) | [inline] |
Returns a reference to the output stream.