winIDEA SDK
Loading...
Searching...
No Matches
isys::CFileStream Class Reference

This class should be used by client applications to create native file stream for emitter output. More...

#include <IEmitter.h>

Inheritance diagram for isys::CFileStream:
isys::ICStream

Public Member Functions

 CFileStream (const std::string &fileName, bool isAppend=false)
 Output will be written to file.
void close () override
 Closes the underlying stream.
void write (const std::string &str) override
 Writes string to output.

Detailed Description

This class should be used by client applications to create native file stream for emitter output.

Python example: cumulative_coverage.py

Constructor & Destructor Documentation

◆ CFileStream()

isys::CFileStream::CFileStream ( const std::string & fileName,
bool isAppend = false )

Output will be written to file.

Parameters
fileNamename of the output file
isAppendif true, output is appended to the existing contents of file. If false, the file contents is erased.
Since
9.12.288

Member Function Documentation

◆ close()

void isys::CFileStream::close ( )
overridevirtual

Closes the underlying stream.

If this method is not called, not all data may be written to the output.

Since
9.12.288

Implements isys::ICStream.

◆ write()

void isys::CFileStream::write ( const std::string & str)
overridevirtual

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.

Since
9.12.288

Implements isys::ICStream.