ClanSoft logo
ClanSoft logo
Entire Class Index Main Class Index Cross Index Global Index

Class CL_OutputSource_Zipped

The Output Source Zipped Class
Contained in: global
Derived from: CL_OutputSource
Derived by: none
Group: Core (I/O Data)

#include <ClanLib/core.h>


public function member index:

Construction:

CL_OutputSource_Zipped(CL_OutputSource* output, bool delete_output = false);
CL_OutputSource_Zipped(const CL_OutputSource_Zipped& copy);
virtual ~CL_OutputSource_Zipped();

Attributes:

virtual int tell() const;
virtual int size() const;

Operations:

virtual int write(const void* data, int size);
virtual void open();
virtual void close();
virtual CL_OutputSource* clone();
 

Description:


Function Member Descriptions:

CL_OutputSource_Zipped::CL_OutputSource_Zipped - Constructs an output source that zips the data and passes it on to the passed output source.
If delete_output is true, the zipped output source will delete the output source at destruction.
CL_OutputSource_Zipped(CL_OutputSource* output, bool delete_output = false);


CL_OutputSource_Zipped::CL_OutputSource_Zipped - Copy constructor. Does the same as the clone() function.
CL_OutputSource_Zipped(const CL_OutputSource_Zipped& copy);


CL_OutputSource_Zipped::clone - Make a copy of the current outputsource, standing at the same position.
virtual CL_OutputSource* clone();
Returns - The copy of the output source.



CL_OutputSource_Zipped::close - Closes the output source.
virtual void close();


CL_OutputSource_Zipped::open - Opens the output source. By default, it is open.
virtual void open();


CL_OutputSource_Zipped::size - Returns the size of the output source
virtual int size() const;
Returns - Size of the output source.



CL_OutputSource_Zipped::tell - Returns current position in output source.
virtual int tell() const;
Returns - Current position in source.



CL_OutputSource_Zipped::write - Writes larger amounts of data (no endian and 64 bit conversion):
virtual int write(const void* data, int size);
data - Points to the array from which to write.
size - Number of bytes to write.
Returns - Num bytes actually written.



CL_OutputSource_Zipped::~CL_OutputSource_Zipped - Destructor.
virtual ~CL_OutputSource_Zipped();



Variable Member Descriptions: