Public Member Functions | Public Attributes | Friends

fio_CirFileHeader_t Struct Reference
[Classes for large file i/o, relative file, and DataBase]

#include <fio_CirFileTrans.h>

List of all members.

Public Member Functions

 fio_CirFileHeader_t ()
 fio_CirFileHeader_t (UInt32_t a_BlockSize, UInt16_t a_BlockRecordOffset)
 first used record in block
 ~fio_CirFileHeader_t ()
void Dump ()
bool operator== (fio_CirFileHeader_t rop)

Public Attributes

char Identification [10]
ivd_RecordIDX_t writeBackBlockIdx
ivd_RecordIDX_t readFrontBlockIdx
UInt32_t BlockSize
UInt16_t BlockRecordOffset
UInt16_t CirFileHdrSize
UInt16_t CirFileVersion
UInt16_t BlockHdrSize
UInt16_t BlockHdrVersion
 log_CLASSID_m

Friends

ostream & operator<< (ostream &a_os, fio_CirFileHeader_t &a_cfh)

Detailed Description

Definition at line 59 of file fio_CirFileTrans.h.


Constructor & Destructor Documentation

fio_CirFileHeader_t::fio_CirFileHeader_t (  ) 

Definition at line 68 of file fio_CirFileTrans.cpp.

References Dump(), and log_FUNC_m.

                                         {
    log_FUNC_m(fio_CirFileHeader_t(clean));
    memset(this, 0, sizeof(fio_CirFileHeader_t));
    Dump();
}

Here is the call graph for this function:

fio_CirFileHeader_t::fio_CirFileHeader_t ( UInt32_t  a_BlockSize,
UInt16_t  a_BlockRecordOffset 
)

first used record in block

Parameters:
a_BlockRecordOffset number of block elements including space for header

Definition at line 76 of file fio_CirFileTrans.cpp.

References Dump(), fio_CIR_FH_IDENTIFICATION_LEN_d, Identification, and log_FUNC_m.

Here is the call graph for this function:

fio_CirFileHeader_t::~fio_CirFileHeader_t (  )  [inline]

Definition at line 66 of file fio_CirFileTrans.h.

{};  


Member Function Documentation

void fio_CirFileHeader_t::Dump (  ) 

Definition at line 96 of file fio_CirFileTrans.cpp.

References dbg_NORM, log_DBG_m, and log_FUNC_m.

Referenced by fio_CirFileHeader_t(), and fio_CirFileTrans::fio_CirFileTrans().

Here is the caller graph for this function:

bool fio_CirFileHeader_t::operator== ( fio_CirFileHeader_t  rop  ) 

Friends And Related Function Documentation

ostream& operator<< ( ostream &  a_os,
fio_CirFileHeader_t a_cfh 
) [friend]

Definition at line 103 of file fio_CirFileTrans.cpp.

                                                                {

    a_os << "&&& Cirkular file header."
         << "\nIdentification:\n" << cmn_HexDump(&a_cfh.Identification, fio_CIR_FH_IDENTIFICATION_LEN_d, 32, true)
         << "\nwriteBackBlockIdx " << a_cfh.writeBackBlockIdx 
         << "\nreadFrontBlockIdx " << a_cfh.readFrontBlockIdx 
         << "\nBlockSize         " << a_cfh.BlockSize         
         << "\nBlockRecordOffset " << a_cfh.BlockRecordOffset 
         << "\nCirFileHdrSize    " << a_cfh.CirFileHdrSize    
         << "\nCirFileVersion    " << a_cfh.CirFileVersion    
         << "\nBlockHdrSize      " << a_cfh.BlockHdrSize    
         << "\nBlockHdrVersion   " << a_cfh.BlockHdrVersion  
         << "\n---------------------------------------\n";
    return a_os;
}


Member Data Documentation

Definition at line 87 of file fio_CirFileTrans.h.

Referenced by operator<<(), and operator==().

Definition at line 88 of file fio_CirFileTrans.h.

Referenced by operator<<(), and operator==().

Definition at line 84 of file fio_CirFileTrans.h.

Referenced by operator<<(), and operator==().

Definition at line 83 of file fio_CirFileTrans.h.

Referenced by operator<<(), and operator==().

Definition at line 85 of file fio_CirFileTrans.h.

Referenced by operator<<(), and operator==().

Definition at line 86 of file fio_CirFileTrans.h.

Referenced by operator<<(), and operator==().

Definition at line 75 of file fio_CirFileTrans.h.

Referenced by fio_CirFileHeader_t(), and operator<<().

Definition at line 90 of file fio_CirFileTrans.h.


The documentation for this struct was generated from the following files: