GlobalObjects
Loading...
Searching...
No Matches
glo::TableInterface::TableInterfaceTable Class Reference

A file (std::fstream) and its name. More...

#include <GloTableInterface.h>

Public Member Functions

 TableInterfaceTable (std::fstream *pTable, const std::string &m_sTableName, std::ios_base::openmode OpenMode)
 
 ~TableInterfaceTable ()
 
void dekrementOpenCounter ()
 
int getOpenCounter ()
 
std::ios_base::openmode getOpenMode () const
 
std::fstream * getTable () const
 
std::string getTableName () const
 
void inkrementOpenCounter ()
 

Private Member Functions

 TableInterfaceTable ()
 
 TableInterfaceTable (const TableInterfaceTable &)
 
TableInterface::TableInterfaceTableoperator= (const TableInterfaceTable &)
 

Private Attributes

int m_iOpenCounter
 
std::ios_base::openmode m_OpenMode
 
std::fstream * m_pTabelle
 
std::string m_sTableName
 

Detailed Description

A file (std::fstream) and its name.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ TableInterfaceTable() [1/3]

glo::TableInterface::TableInterfaceTable::TableInterfaceTable ( )
private

The default constructor is not available.

◆ TableInterfaceTable() [2/3]

glo::TableInterface::TableInterfaceTable::TableInterfaceTable ( std::fstream * pTable,
const std::string & m_sTableName,
std::ios_base::openmode OpenMode )

Constructor with parameter passing.

Parameters
[in]pTableThe table file.
[in]m_sTableNameThe table file name.
[in]OpenModeThe mode in which the file was opened.

◆ ~TableInterfaceTable()

glo::TableInterface::TableInterfaceTable::~TableInterfaceTable ( )

Destructor.

◆ TableInterfaceTable() [3/3]

glo::TableInterface::TableInterfaceTable::TableInterfaceTable ( const TableInterfaceTable & )
private

The copy constructor is not available.

Member Function Documentation

◆ dekrementOpenCounter()

void glo::TableInterface::TableInterfaceTable::dekrementOpenCounter ( )

decrements the open counter.

◆ getOpenCounter()

int glo::TableInterface::TableInterfaceTable::getOpenCounter ( )

Returns the open counter.

Returns
See above.

◆ getOpenMode()

std::ios_base::openmode glo::TableInterface::TableInterfaceTable::getOpenMode ( ) const

Returns the mode in which the file was opened.

Returns
See above.

◆ getTable()

std::fstream * glo::TableInterface::TableInterfaceTable::getTable ( ) const

Returns a pointer to the table file.

Returns
See above.

◆ getTableName()

std::string glo::TableInterface::TableInterfaceTable::getTableName ( ) const

Returns the table file name.

Returns
See above.

◆ inkrementOpenCounter()

void glo::TableInterface::TableInterfaceTable::inkrementOpenCounter ( )

Increments the open counter.

◆ operator=()

TableInterface::TableInterfaceTable & glo::TableInterface::TableInterfaceTable::operator= ( const TableInterfaceTable & )
private

The assignment operator is not available.

Member Data Documentation

◆ m_iOpenCounter

int glo::TableInterface::TableInterfaceTable::m_iOpenCounter
private

The table file can be opened multiple times. In reality it is only opened once. With each further opening this counter is incremented. When the table file is closed again, this counter is decremented until it runs to 0; then the table file is really closed.

◆ m_OpenMode

std::ios_base::openmode glo::TableInterface::TableInterfaceTable::m_OpenMode
private

The mode (ios_base::openmode) in which the file was opened

◆ m_pTabelle

std::fstream* glo::TableInterface::TableInterfaceTable::m_pTabelle
private

The table file.

◆ m_sTableName

std::string glo::TableInterface::TableInterfaceTable::m_sTableName
private

The table name.


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