Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::BinaryPersistable Class Reference

#include <vcf/ApplicationKit/DataObject.h>

Inheritance diagram for VCF::BinaryPersistable:

VCF::Object VCF::Persistable List of all members.

Public Member Functions

 BinaryPersistable (const unsigned char *dataToInitWith, const uint32 &dataSize)
virtual ~BinaryPersistable ()
virtual void saveToStream (OutputStream *stream, const MIMEType &type=MIMEType())
 Write the object to the specified output stream.
virtual void loadFromStream (InputStream *stream, const MIMEType &type=MIMEType())
 Read the object from the specified input stream.
unsigned char * getData ()
uint32 getSize ()

Protected Attributes

unsigned char * data_
uint32 dataSize_

Constructor & Destructor Documentation

VCF::BinaryPersistable::BinaryPersistable const unsigned char *  dataToInitWith,
const uint32 dataSize
[inline]
 

virtual VCF::BinaryPersistable::~BinaryPersistable  )  [inline, virtual]
 


Member Function Documentation

unsigned char* VCF::BinaryPersistable::getData  )  [inline]
 

uint32 VCF::BinaryPersistable::getSize  )  [inline]
 

virtual void VCF::BinaryPersistable::loadFromStream InputStream stream,
const MIMEType type = MIMEType()
[inline, virtual]
 

Read the object from the specified input stream.

Parameters:
InputStream 
MIMEType indicates how to read the data from the stream. For example, if the object was some sort of image object, and had an array of pixels, then the type might indicate how the data in the stream should be interpreted, such as the JPEG format ("image/jpeg"), or the PNG format ("image/png").

Implements VCF::Persistable.

virtual void VCF::BinaryPersistable::saveToStream OutputStream stream,
const MIMEType type = MIMEType()
[inline, virtual]
 

Write the object to the specified output stream.

Parameters:
OutputStream 
MIMEType indicates how the object should write it's data. For example, if the object was some sort of image object, and had an array of pixels, then the type might indicate what kind of image type to write the data in, such as the JPEG format ("image/jpeg"), or the PNG format ("image/png").

Implements VCF::Persistable.


Member Data Documentation

unsigned char* VCF::BinaryPersistable::data_ [protected]
 

uint32 VCF::BinaryPersistable::dataSize_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information