#include <fio_Alteration.h>
Definition at line 44 of file fio_Alteration.h.
Public Member Functions | |
| fio_Alter_t () | |
| fio_Alter_t (UInt16_t a_fileID, ivd_FilePosition_t a_filePosition, ivd_FileBufSize_t a_bufSize) | |
| void | Init (UInt16_t a_fileID, ivd_FilePosition_t a_filePosition, ivd_FileBufSize_t a_bufSize) |
| ~fio_Alter_t () | |
| fio_Alter_t (fio_JourHandle *m_jourHnd_p) | |
| bool | isValid () |
| bool | operator== (fio_Alter_t &a) |
| void | Dump (ostream &os, int a_recSize, int a_offset) |
Public Attributes | |
| UInt16_t | Prefix |
| UInt8_t | version |
| UInt8_t | fileID |
| ivd_FilePosition_t | filePosition |
| ivd_FileBufSize_t | bufSize |
| UInt16_t | Suffix |
| log_CLASSID_m | |
| fio_Alter_t::fio_Alter_t | ( | ) | [inline] |
| fio_Alter_t::fio_Alter_t | ( | UInt16_t | a_fileID, | |
| ivd_FilePosition_t | a_filePosition, | |||
| ivd_FileBufSize_t | a_bufSize | |||
| ) | [inline] |
Definition at line 46 of file fio_Alteration.h.
00050 : 00051 Prefix(c_fio_AlterPrefix_d), 00052 version(fio_ALTER_T_version), 00053 fileID((UInt8_t)a_fileID), 00054 filePosition(a_filePosition), 00055 bufSize(a_bufSize), 00056 Suffix(c_fio_AlterSuffix_d) 00057 { 00058 // empty 00059 };
| fio_Alter_t::~fio_Alter_t | ( | ) | [inline] |
| fio_Alter_t::fio_Alter_t | ( | fio_JourHandle * | m_jourHnd_p | ) |
Definition at line 52 of file fio_Alteration.cpp.
References ie_NOT_ALTER_T, isValid(), ivd_Error, fio_JourHandle::JourRead(), and len.
00052 { 00053 unsigned int len = m_jourHnd_p->JourRead(this, sizeof(fio_Alter_t)); 00054 00055 if (!isValid() 00056 || len != sizeof(fio_Alter_t)) { 00057 throw ivd_Error(ie_NOT_ALTER_T, "", false); 00058 } 00059 }

| void fio_Alter_t::Init | ( | UInt16_t | a_fileID, | |
| ivd_FilePosition_t | a_filePosition, | |||
| ivd_FileBufSize_t | a_bufSize | |||
| ) | [inline] |
Definition at line 61 of file fio_Alteration.h.
References bufSize, c_fio_AlterPrefix_d, c_fio_AlterSuffix_d, fileID, filePosition, fio_ALTER_T_version, Prefix, Suffix, and version.
Referenced by fio_AlterJourBlock::Insert().
00064 { 00065 Prefix = c_fio_AlterPrefix_d, 00066 version = fio_ALTER_T_version, 00067 fileID = (UInt8_t)a_fileID, 00068 filePosition = a_filePosition, 00069 bufSize = a_bufSize, 00070 Suffix = c_fio_AlterSuffix_d; 00071 };

| bool fio_Alter_t::isValid | ( | ) |
Definition at line 63 of file fio_Alteration.cpp.
References bufSize, c_fio_AlterPrefix_d, c_fio_AlterSuffix_d, fileID, filePosition, fio_ALTER_T_version, Prefix, Suffix, and version.
Referenced by fio_Alter_t().
00063 { return ( (fileID > 0) 00064 && (version == fio_ALTER_T_version) 00065 && (filePosition > 0) 00066 && (bufSize > 0) 00067 && (Prefix == c_fio_AlterPrefix_d) 00068 && (Suffix == c_fio_AlterSuffix_d) 00069 ); 00070 }

| bool fio_Alter_t::operator== | ( | fio_Alter_t & | a | ) |
Definition at line 74 of file fio_Alteration.cpp.
References bufSize, fileID, filePosition, Prefix, Suffix, and version.
00074 { 00075 return ( (fileID == a.fileID) 00076 && (version == a.version) 00077 && (filePosition == a.filePosition) 00078 && (bufSize == a.bufSize) 00079 && (Prefix == a.Prefix) 00080 && (Suffix == a.Suffix) 00081 ); 00082 }
| void fio_Alter_t::Dump | ( | ostream & | os, | |
| int | a_recSize, | |||
| int | a_offset | |||
| ) |
Definition at line 86 of file fio_Alteration.cpp.
References bufSize, c_fio_maxRelFileHeadLen, fileID, and filePosition.
Referenced by fio_JourFile::Dump().
00086 { 00087 os << setw(5) << int(fileID) << setw(10); 00088 if (a_recSize == 0) { 00089 os << " IDX = ???? Size is not specified." << int(fileID); 00090 } 00091 else { 00092 if (filePosition < a_offset) { 00093 os << (filePosition - c_fio_maxRelFileHeadLen) / sizeof(fio_uvListHeader_t) 00094 << "H"; 00095 } 00096 else { 00097 os << (filePosition - a_offset) / a_recSize << "R"; 00098 } 00099 } 00100 os << setw(10) << filePosition; 00101 os << setw(10) << bufSize << '\n'; 00102 }

Definition at line 82 of file fio_Alteration.h.
Referenced by fio_JourFile::Dump(), Dump(), Init(), isValid(), operator==(), and fio_AlterJour::UpdateDB().
Definition at line 83 of file fio_Alteration.h.
Referenced by fio_JourFile::Dump(), Dump(), Init(), isValid(), operator==(), and fio_AlterJour::UpdateDB().
Definition at line 84 of file fio_Alteration.h.
Referenced by fio_JourFile::Dump(), Dump(), Init(), fio_AlterJour::Insert(), fio_Transaction::InsertAlteration(), isValid(), operator==(), and fio_AlterJour::UpdateDB().
Definition at line 87 of file fio_Alteration.h.
1.5.6