class oeiwrapperstream : public oeistream
This class represents oeiwrapperstream.
Implements a wrapper class to seamless contain and abstract the functionality of another oeistream.
The following methods are publicly inherited from oeistream:
The following methods are publicly inherited from oestream:
- The following classes derive from this class:
oeiwrapperstream() oeiwrapperstream(oeistream *isptr, bool del)
Creates a new oeiwrapperstream.
Passing the ‘isptr’ and ‘del’
parameters is equivalent to using the default constructor and then
on the newly created stream.
Clears the pointer to the wrapped stream. If the ‘del’ parameter was
true when the wrapped stream was set
oeiwrapperstream.set), the wrapped stream
will be deleted before it is cleared.
bool set(oeistream *isptr, bool del)
Sets ‘isptr’ to be the stream wrapped by this class. If ‘del’ is
the wrapped stream will be deleted when the clear method is called
or when this class is deleted. It is important to understand that
by setting ‘del’ to
true, ownership of the stream’s memory is
transferred to this class, and if it is
false, you retain the
responsibility for managing the stream’s memory.
Returns a pointer to the wrapped stream if present, otherwise