FDO API Reference Feature Data Objects

FdoIoObjectStreamReader< T > Class Template Reference

#include <ObjectStreamReader.h>

Inherits FdoIStreamReaderTmpl< T >< T >.

Inheritance diagram for FdoIoObjectStreamReader< T >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename T>
class FdoIoObjectStreamReader< T >

FdoIoObjectStreamReader is the template for all readers on FdoIoStream. Readers for various sized objects or primitive types can be based on this class.

Definition at line 29 of file ObjectStreamReader.h.


Public Member Functions

virtual FDO_API_COMMON FdoInt64 GetIndex ()
 Gets the current stream position. Position is measured by number of items from the stream start.
virtual FDO_API_COMMON FdoInt64 GetLength ()
 Gets the stream length.
virtual FDO_API_COMMON FdoInt32 ReadNext (FdoArray< T > *&buffer, const FdoInt32 offset=0, const FdoInt32 count=-1)
 Reads in the next block of items. Use ReadNext( buffer) to read in the entire stream. The caller is responsible to create/dispose the FdoArray.
virtual FDO_API_COMMON FdoInt32 ReadNext (T *buffer, const FdoInt32 offset=0, const FdoInt32 count=-1)
 Reads in the next block of items. Use ReadNext( buffer) to read in the entire stream. The caller is responsible to allocate a buffer large enough to store data.
virtual FDO_API_COMMON void Reset ()
 Reset the current index to the stream start. Allows re-reading.
virtual FDO_API_COMMON void Skip (const FdoInt32 offset)
 Skips a number of items.

The documentation for this class was generated from the following file:
Comments or suggestions? Send us feedback.