![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/io/FileOutput.h>
Public Member Functions | |
FileOutput (const char *path, bool append=false) | |
FileOutput (cstring path, bool append=false) | |
FileOutput (string path, bool append=false) | |
FileOutput (sys::Path path, bool append=false) | |
FileOutput (FileOutput &&fo) | |
~FileOutput (void) | |
![]() | |
Output (void) | |
Output (OutStream &stream) | |
OutStream & | stream (void) const |
void | setStream (OutStream &stream) |
void | flush (void) |
void | print (bool value) |
void | print (char chr) |
void | print (double value) |
void | print (void *value) |
void | print (const char *str) |
void | print (const CString str) |
void | print (const String &str) |
void | print (const IntFormat &fmt) |
void | print (const FloatFormat &fmt) |
void | print (const StringFormat &fmt) |
void | format (CString fmt,...) |
void | format (CString fmt, VarArg &args) |
bool | supportsANSI () |
void | print (t::int32 value) |
void | print (t::uint32 value) |
void | print (t::int64 value) |
void | print (t::uint64 value) |
Shortcut to build an output to an opened file. Notice that the created file overwrite any existing file.
FileOutput | ( | const char * | path, |
bool | append = false |
||
) |
Build a formatted output which stream is the opened corresponding to the given path. If the file already exists, it is overwritten.
path | Path of the file to write to. |
append | Instead of overwriting, append to the written file (optional). |
sys::SystemException | If the file can not be opened. |
FileOutput | ( | cstring | path, |
bool | append = false |
||
) |
Build a formatted output which stream is the opened corresponding to the given path. If the file already exists, it is overwritten.
path | Path of the file to write to. |
append | Instead of overwriting, append to the written file (optional). |
sys::SystemException | If the file can not be opened. |
FileOutput | ( | string | path, |
bool | append = false |
||
) |
Build a formatted output which stream is the opened corresponding to the given path. If the file already exists, it is overwritten.
path | Path of the file to write to. |
append | Instead of overwriting, append to the written file (optional). |
sys::SystemException | If the file can not be opened. |
FileOutput | ( | sys::Path | path, |
bool | append = false |
||
) |
Build a formatted output which stream is the opened corresponding to the given path. If the file already exists, it is overwritten.
path | Path of the file to write to. |
append | Instead of overwriting, append to the written file (optional). |
sys::SystemException | If the file can not be opened. |
References elm::io::append(), Path::append(), Output::setStream(), and Path::write().
FileOutput | ( | FileOutput && | fo | ) |
Transfer stream of the argument output to the current output.
fo | File output to transfer stream from. |
References Output::setStream().
~FileOutput | ( | void | ) |