Public Member Functions | Public Attributes | Friends

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

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

#include <fio_VarLenRFT.h>

Inheritance diagram for fio_VarLenRFT:
Inheritance graph
[legend]
Collaboration diagram for fio_VarLenRFT:
Collaboration graph
[legend]

List of all members.

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

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 49 of file fio_VarLenRFT.h.


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 52 of file fio_VarLenRFT.h.

        :
        fio_RelFileTrans(a_readOnly,
                         a_fileID, 
                         a_path, 
                         a_fileName, 
                         a_recordSize,
                         1,
                         ivd_MAX_NUM_OF_DIF_VECTOR_IN_REL_FILES_d,
                         1,
                         false,
                         fio_RECOMENDED_UV_BUFFER_SIZE_d)
{
    //Empty
};


Member Function Documentation

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

Definition at line 83 of file fio_VarLenRFT.h.

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


Friends And Related Function Documentation

friend class ut_fio_VarLenRFT [friend]

Definition at line 50 of file fio_VarLenRFT.h.


Member Data Documentation

Macro for class name member.

Reimplemented from fio_RelFileTrans.

Definition at line 71 of file fio_VarLenRFT.h.


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