In file /home/eternity/Source/Eso/TCBWrapper/H/tcbTable.h:

class TCBTable : public Table

Encrypted (database like) table

Inheritance:

TCBTable < Table < Debugable


Public Methods

Err TCBTable::Close ()
Closes TCBTable
Err TCBTable::Open ()
Opens TCBTable
TCBTable::TCBTable (const Char *tableName, TableFieldQueue *definition, const GMessage *tableRingKey, LogFile *aLogFile)
TCBTable constructor
TCBTable::~TCBTable ()
TCBTable destructor

Public

methods
TCBTable (const Char *tableName, TableFieldQueue *definition, const GMessage *tableRingKey, LogFile *aLogFile)
Constructor.
virtual ~TCBTable ()
Destructor.
virtual Err Open ()
Opens the TCBTable - decrypts it temporarily
virtual Err Close ()
Closes the TCBTable - encrypts it

Protected

attributes

Inherited from Table:

Public Methods

Int Table::CanDelete()
Int Table::CanUpdate()
Err Table::Close()
Char* Table::CreateTmpFileName()
Err Table::DeleteRecord()
Record* Table::FindFirst( const Char *aFieldName, const Void *aFieldValue)
Record* Table::FindNext()
Record* Table::First()
Char* Table::GetFileName()
Err Table::InsertRecord(Record *aRecord)
Int Table::IsFixed()
Int Table::IsOpen()
Record* Table::NewRecord()
Record* Table::Next()
Err Table::Open()
Record* Table::ReadRecord()
Size Table::ReadRecordLength()
Err Table::Remove()
Table::Table(const Char *fileName, TableFieldQueue *aDefinition, LogFile *aLogFile)
Err Table::UpdateRecord(Record *aRecord)
Err Table::WriteRecord(Record *aRecord)
Table::~Table()

Inherited from Debugable:

Public Methods

string* Debugable::CreateString(char *firstStr, int firstInt, int secondInt)
Debugable::Debugable(LogFile * debugLogFile)
int Debugable::SetDebugOptions(int newLogOptions)
void Debugable::SetLogFile(LogFile *aLogFile)
void Debugable::WriteString(LogLevel debugLevel, char * format, ...)
Debugable::~Debugable()

Documentation

Encrypted (database like) table. The same like Table, but the file into which the data is stored is saved encrypted with the symetric key. This implementation works with it in a simple way:
Open - decrypts the table, all operations then work on the decrypted file. Close - encrypts the table.
attributes

methods

TCBTable(const Char *tableName, TableFieldQueue *definition, const GMessage *tableRingKey, LogFile *aLogFile)
Constructor.

virtual ~TCBTable()
Destructor.

virtual Err Open()
Opens the TCBTable - decrypts it temporarily

virtual Err Close()
Closes the TCBTable - encrypts it

Err TCBTable::Close()
Closes TCBTable. Uses ringKey to encrypt previously decrypted table.
Returns:
error code
Author:
Pavel
See Also:
Table, Cipherer, TCBWrapper

Err TCBTable::Open()
Opens TCBTable. Uses ringKey to decrypt the table to allow all common table operations.
Returns:
error code
Author:
Pavel
See Also:
Table, Cipherer, TCBWrapper

TCBTable::TCBTable(const Char *tableName, TableFieldQueue *definition, const GMessage *tableRingKey, LogFile *aLogFile)
TCBTable constructor. Creates name for decrypted table and a file to access it.
Parameters:
tableName - name of encrypted table
definition - definition of table structure
tableRingKey - symetric key used to keep table encrypted
aLogFile - log file for debugging messages
Author:
Pavel
See Also:
Table, TableFieldQueue

TCBTable::~TCBTable()
TCBTable destructor. Destroyes everything created.
Author:
Pavel
See Also:
co_se_toho_tyka


This class has no child classes.
Author:
Pavel
See Also:
Table, TCBWrapper

alphabetic index hierarchy of classes


generated by doc++