winIDEA SDK
isys::ICStream Class Referenceabstract

Description

This interface provides common methods for streams.

It can be used from C++ only.

#include <IEmitter.h>

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

Public Member Functions

virtual void write (const std::string &str)=0
 Writes string to output. More...
 
virtual void close ()=0
 Closes the underlying stream. More...
 

Member Function Documentation

◆ close()

virtual void isys::ICStream::close ( )
pure virtual

Closes the underlying stream.

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

Implemented in isys::CStringStream, and isys::CFileStream.

◆ write()

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

Implemented in isys::CStringStream, and isys::CFileStream.