This class writes data to string stream. More...
#include <IEmitter.h>
Public Member Functions | |
| void | close () |
| Closes the underlying stream. | |
| CStringStream () | |
| Creates object with empty string stream. | |
| std::string | getString () |
| Returns contents of this stream as a string. | |
| void | write (const std::string &str) |
| Writes string to output. | |
This class writes data to string stream.
Python example: cumulative_coverage.py
| isys::CStringStream::CStringStream | ( | ) |
Creates object with empty string stream.
|
virtual |
Closes the underlying stream.
If this method is not called, not all data may be written to the output.
Implements isys::ICStream.
| std::string isys::CStringStream::getString | ( | ) |
Returns contents of this stream as a string.
|
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.