Public Member Functions | Public Attributes

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

Description of each file inside database. More...

#include <fio_DataBase.h>

List of all members.

Public Member Functions

 fio_DBFileDef (ivd_FileID_t a_fileID, string a_fileName, int a_recordSize, int a_recordVersion)
virtual ~fio_DBFileDef ()

Public Attributes

ivd_FileID_t fileID
 Unique file number inside one database, once is set then shouldn't be changed.
string fileName
 Pure file name.
unsigned int recordSize
 The size of record that has to be stored in relative file header.
UInt16_t recordVersion
 Record version that has to be stored in relative file header.
 log_CLASSID_m

Detailed Description

Description of each file inside database.

Example:

static fio_DBFileDef ut_DBFiles_a[] = {
   fio_DBFileDef(1, "fsc_DataL"     , sizeof(fsc_DataL_t)     ),
   fio_DBFileDef(2, "fsc_Generation", sizeof(fsc_Generation_t)),
   fio_DBFileDef(3, "fsc_Chunk"     , sizeof(fsc_Chunk_t)     ),
   fio_DBFileDef(4, "fsc_Copy"      , sizeof(fsc_Copy_t)      ),  
   fio_DBFileDef(5, "fsc_Split"     , sizeof(fsc_Split_t)     )  
};

Definition at line 53 of file fio_DataBase.h.


Constructor & Destructor Documentation

fio_DBFileDef::fio_DBFileDef ( ivd_FileID_t  a_fileID,
string  a_fileName,
int  a_recordSize,
int  a_recordVersion 
) [inline]

Definition at line 55 of file fio_DataBase.h.

    : fileID(a_fileID),
      fileName(a_fileName),
      recordSize(a_recordSize),
      recordVersion(a_recordVersion)
    { };

virtual fio_DBFileDef::~fio_DBFileDef (  )  [inline, virtual]

Definition at line 64 of file fio_DataBase.h.

{};


Member Data Documentation

Unique file number inside one database, once is set then shouldn't be changed.

Definition at line 64 of file fio_DataBase.h.

Pure file name.

The path is add by DataBase class.

See also:
fio_DataBase

Definition at line 74 of file fio_DataBase.h.

Definition at line 86 of file fio_DataBase.h.

The size of record that has to be stored in relative file header.

Definition at line 79 of file fio_DataBase.h.

Record version that has to be stored in relative file header.

Definition at line 84 of file fio_DataBase.h.


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