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

VCF::XMLDictInputStream Class Reference

#include <vcf/FoundationKit/XMLDictInputStream.h>

Inheritance diagram for VCF::XMLDictInputStream:

VCF::BasicInputStream VCF::InputStream VCF::Stream List of all members.

Public Member Functions

 XMLDictInputStream (InputStream *stream)
virtual void seek (const uint64 &offset, const SeekType &offsetFrom)
virtual uint64 getSize ()
 returns the size of the stream.
virtual uchargetBuffer ()
 returns a pointer to the buffer that holds the stream memory
virtual uint32 read (unsigned char *bytesToRead, uint32 sizeOfBytes)
virtual void read (Persistable *persistableObject)
virtual bool isEOS ()
void readDict (Dictionary &dict)
void readValue (XMLNode *valNode, VariantData &value)
void readArray (XMLNode *arrayNode, VariantArray *array)
void readDict (XMLNode *dictNode, Dictionary &dict)
virtual uint64 getCurrentSeekPos ()
 this is a global offset from the beggining of the stream

Protected Attributes

InputStreaminStream_

Constructor & Destructor Documentation

VCF::XMLDictInputStream::XMLDictInputStream InputStream stream  )  [inline]
 


Member Function Documentation

virtual uchar* VCF::XMLDictInputStream::getBuffer  )  [inline, virtual]
 

returns a pointer to the buffer that holds the stream memory

Reimplemented from VCF::BasicInputStream.

virtual uint64 VCF::XMLDictInputStream::getCurrentSeekPos  )  [inline, virtual]
 

this is a global offset from the beggining of the stream

Reimplemented from VCF::BasicInputStream.

virtual uint64 VCF::XMLDictInputStream::getSize  )  [inline, virtual]
 

returns the size of the stream.

The size represents the number of bytes that have been written, or read to/from the stream

Reimplemented from VCF::BasicInputStream.

virtual bool VCF::XMLDictInputStream::isEOS  )  [inline, virtual]
 

Reimplemented from VCF::BasicInputStream.

virtual void VCF::XMLDictInputStream::read Persistable persistableObject  )  [inline, virtual]
 

Reimplemented from VCF::InputStream.

virtual uint32 VCF::XMLDictInputStream::read unsigned char *  bytesToRead,
uint32  sizeOfBytes
[inline, virtual]
 

void VCF::XMLDictInputStream::readArray XMLNode arrayNode,
VariantArray array
[inline]
 

void VCF::XMLDictInputStream::readDict XMLNode dictNode,
Dictionary dict
[inline]
 

void VCF::XMLDictInputStream::readDict Dictionary dict  )  [inline]
 

void VCF::XMLDictInputStream::readValue XMLNode valNode,
VariantData value
[inline]
 

we need to be able to attach the data to an Object class so that we can assign it to a VariantData instance, We need to create a new class for this, something like:

class BinaryData : public Object { public: protected: unsigned char* buffer_; uint32 bufSize_; };

then we could do something like Dictionary dict; BinaryData* data = new BinaryData( jpegPictData, jpegPictSize ); dict["Picture"] = data;

virtual void VCF::XMLDictInputStream::seek const uint64 offset,
const SeekType offsetFrom
[inline, virtual]
 

Reimplemented from VCF::BasicInputStream.


Member Data Documentation

InputStream* VCF::XMLDictInputStream::inStream_ [protected]
 

Reimplemented from VCF::BasicInputStream.


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