KFbxStream
#include<kfbxstream.h>

List of all members.

Detailed Description

Generic base class for streamable data.

Currently it is only used for the Unload/Load of objects content when using the Peripheral objects.

Definition at line49of filekfbxstream.h.


Public Member Functions

virtual eStreamState State()
 Query the current state of the stream.
virtual bool Open()
 Open the stream.
virtual bool Close()
 Close the stream.
virtual bool Flush()
 Empties the internal data of the stream.
virtual int Write(const void *pData, int pSize)
 Writes a memory block.
virtual int Read(void *pData, int pSize) const
 Read bytes from the stream and store them in the memory block.

Member Function Documentation

virtual eStreamState State( ) [inline, virtual]

Query the current state of the stream.

Definition at line63of filekfbxstream.h.

virtual bool Open( ) [inline, virtual]

Open the stream.

Returns:
True if successful.

Definition at line68of filekfbxstream.h.

virtual bool Close( ) [inline, virtual]

Close the stream.

Returns:
True if successful.

Definition at line73of filekfbxstream.h.

virtual bool Flush( ) [inline, virtual]

Empties the internal data of the stream.

Returns:
True if successful.

Definition at line78of filekfbxstream.h.

virtual int Write(const void * pData,
int pSize 
)[inline, virtual]

Writes a memory block.

Parameters:
pData Pointer to the memory block to write.
pSize Size (in bytes) of the memory block to write.
Returns:
The number of bytes written in the stream.

Definition at line85of filekfbxstream.h.

virtual int Read(void * pData,
int pSize 
)const[inline, virtual]

Read bytes from the stream and store them in the memory block.

Parameters:
pData Pointer to the memory block where the read bytes are stored.
pSize Number of bytes read from the stream.
Returns:
The actual number of bytes successfully read from the stream.

Definition at line95of filekfbxstream.h.