Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Impala::Util::IOBufferChannel Class Reference

Experimental specialization of IOBuffer that obtains data thru a Channel upon invocation of member functions. More...

#include <IOBufferChannel.h>

Inheritance diagram for Impala::Util::IOBufferChannel:

Inheritance graph
[legend]
Collaboration diagram for Impala::Util::IOBufferChannel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IOBufferChannel (CString fileName, bool readMode, Channel *channel=0)
virtual ~IOBufferChannel ()
virtual bool Valid ()
virtual Int64 Read (void *buf, Int64 bytesToRead)
 returns number of bytes read
virtual String ReadLine ()
 only for ascii (not binary) entities
virtual Int64 Gets (char *buf, Int64 bytesToRead)
virtual void NativeTypeRead (Int8 *ptr)
virtual void NativeTypeRead (UInt8 *ptr)
virtual void NativeTypeRead (Int16 *ptr)
virtual void NativeTypeRead (UInt16 *ptr)
virtual void NativeTypeRead (Int32 *ptr)
virtual void NativeTypeRead (UInt32 *ptr)
virtual void NativeTypeRead (Real32 *ptr)
virtual void NativeTypeRead (Real64 *ptr)
virtual void Write (const void *buf, Int64 bytesToWrite)
virtual Int64 Puts (const char *buf)
virtual void NativeTypeWrite (Int8 val)
virtual void NativeTypeWrite (UInt8 val)
virtual void NativeTypeWrite (Int16 val)
virtual void NativeTypeWrite (UInt16 val)
virtual void NativeTypeWrite (Int32 val)
virtual void NativeTypeWrite (UInt32 val)
virtual void NativeTypeWrite (Real32 val)
virtual void NativeTypeWrite (Real64 val)
virtual void SetPosition (PositionType position)

Private Member Functions

template<class NativeType>
void DoNativeTypeRead (NativeType *ptr)
template<class NativeType>
void DoNativeTypeWrite (NativeType val)

Private Attributes

bool mReadMode
int mId
ChannelmMyChannel
 ILOG_VAR_DEC

Detailed Description

Experimental specialization of IOBuffer that obtains data thru a Channel upon invocation of member functions.

NOTE that this is a different approach than the use of mDataChannel in IOBuffer since there communication is on open and close only!

Definition at line 20 of file IOBufferChannel.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 11:40:22 2010 for ImpalaSrc by  doxygen 1.5.1