winIDEA SDK
isys::CStringStream Class Reference

Description

This class writes data to string stream.

Python example with coverage.

#include <IEmitter.h>

Inheritance diagram for isys::CStringStream:
isys::ICStream

Public Member Functions

 CStringStream ()
 Creates object with empty string stream.
 
void write (const std::string &str)
 Writes string to output. More...
 
void close ()
 Closes the underlying stream. More...
 
std::string getString ()
 Returns contents of this stream as a string.
 

Member Function Documentation

◆ close()

void isys::CStringStream::close ( )
virtual

Closes the underlying stream.

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

Implements isys::ICStream.

◆ write()

void isys::CStringStream::write ( const std::string &  str)
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.