fio_VarLenRFT Class Reference
[Classes for large file i/o, relative file, and DataBase]

#include <fio_VarLenRFT.h>

Inheritance diagram for fio_VarLenRFT:

Inheritance graph
[legend]
Collaboration diagram for fio_VarLenRFT:

Collaboration graph
[legend]

List of all members.


Detailed Description

this class transform each strem of data represented as stream of byte to particular number of records.

Default record syze is 8 byte. cant be smaller than size of ivd_RecordIDX_t type because of bind of unused vector chain.

Definition at line 35 of file fio_VarLenRFT.h.


Public Member Functions

 fio_VarLenRFT (bool a_readOnly, const int a_fileID, cmn_Path a_path, string a_fileName, const int a_recordSize=8)
unsigned int ToNumOfRecords (unsigned int a_streamSize)

Public Attributes

 log_CLASSID_m
 Macro for class name member.

Friends

class ut_fio_VarLenRFT

Constructor & Destructor Documentation

fio_VarLenRFT::fio_VarLenRFT ( bool  a_readOnly,
const int  a_fileID,
cmn_Path  a_path,
string  a_fileName,
const int  a_recordSize = 8 
) [inline]

Definition at line 38 of file fio_VarLenRFT.h.

00044         :
00045         fio_RelFileTrans(a_readOnly,
00046                          a_fileID, 
00047                          a_path, 
00048                          a_fileName, 
00049                          a_recordSize,
00050                          1,
00051                          ivd_MAX_NUM_OF_DIF_VECTOR_IN_REL_FILES_d,
00052                          1,
00053                          false,
00054                          fio_RECOMENDED_UV_BUFFER_SIZE_d)
00055 {
00056     //Empty
00057 };
/*        const Int16_t   a_recordStructVersion,


Member Function Documentation

unsigned int fio_VarLenRFT::ToNumOfRecords ( unsigned int  a_streamSize  )  [inline]

Definition at line 69 of file fio_VarLenRFT.h.

00069                                                                   {
00070         return ((a_streamSize + m_recordSize - 1) / m_recordSize);
00071     };


Friends And Related Function Documentation

friend class ut_fio_VarLenRFT [friend]

Definition at line 36 of file fio_VarLenRFT.h.


Member Data Documentation

Macro for class name member.

Reimplemented from fio_RelFileTrans.

Definition at line 57 of file fio_VarLenRFT.h.


The documentation for this class was generated from the following file:

Generated on Mon Feb 27 19:18:39 2012 for OPENARCHIVE by  doxygen 1.5.6