Represents file writer with platform-dependent implementation.
More...
#include <FileWriter.hpp>
|
static std::shared_ptr< FileWriter > | create (const std::string &filename, Mode mode) |
| Creates new file writer for specified filename. More...
|
|
Represents file writer with platform-dependent implementation.
◆ Mode
The creation mode.
Enumerator |
---|
New | Creates new file and throws exception if it already exists.
|
Overwrite | Overwrites file if it already exists.
|
Append | Appends data to the end of the existing file.
|
◆ create()
static std::shared_ptr<FileWriter> CppMate::FileWriter::create |
( |
const std::string & |
filename, |
|
|
Mode |
mode |
|
) |
| |
|
static |
Creates new file writer for specified filename.
- Parameters
-
filename | the name of the target file. |
mode | creation mode. |
- Returns
- instance of file writer.
- Exceptions
-
◆ getFilename()
virtual std::string CppMate::FileWriter::getFilename |
( |
| ) |
const |
|
pure virtual |
Returns name of file.
- Returns
- the name of file.
The documentation for this class was generated from the following file: