winIDEA SDK
|
This class should be used by client applications to create native file stream for emitter output.
#include <IEmitter.h>
Public Member Functions | |
CFileStream (const std::string &fileName, bool isAppend=false) | |
Output will be written to file. More... | |
void | close () |
Closes the underlying stream. More... | |
void | write (const std::string &str) |
Writes string to output. More... | |
isys::CFileStream::CFileStream | ( | const std::string & | fileName, |
bool | isAppend = false |
||
) |
Output will be written to file.
fileName | name of the output file |
isAppend | if true, output is appended to the existing contents of file. If false, the file contents is erased. |
|
virtual |
Closes the underlying stream.
If this method is not called, not all data may be written to the output.
Implements isys::ICStream.
|
virtual |
Writes string to output.
Use this method to add custom data to output file. However, take care to keep the file format valid, for example if it is XML file, to use tags consistently.
Implements isys::ICStream.