TableAttr.h

Classes

TableAttr -- Some attributes of a table. (full description)

class TableAttr

Interface

Public Members
TableAttr()
explicit TableAttr (const Table& table)
explicit TableAttr (const String& name, Bool openWritable = False)
TableAttr (const String& name, Bool openWritable, const TableLock&)
TableAttr (const TableAttr& that)
TableAttr& operator= (const TableAttr& that)
TableAttr& operator= (const Table& table)
~TableAttr()
void set (const Table& table)
void setRW()
void setName (const String& name)
const String& name() const
const Bool openWritable() const
const TableLock& lockOptions() const

Description

Review Status

Reviewed By:
Mark Wieringa
Date Reviewed:
1996/04/15
Programs:
Tests:

Prerequisite

Synopsis

This class holds some attributes of a table. These attributes are name, readable/writable, and lock options.
The primary use of the class is to be able to pass the various attributes of the parent table to its subtables (e.g. in classes like TableRecord and TableKeyword).

Motivation

This class makes it possible to have more attributes without having to alter the classes using subtables.

Member Description

TableAttr()

Default constructor results in empty name.

explicit TableAttr (const Table& table)

Construct the attributes from the table.

explicit TableAttr (const String& name, Bool openWritable = False)
TableAttr (const String& name, Bool openWritable, const TableLock&)

Construct with given values.

TableAttr (const TableAttr& that)

Copy constructor (copy semantics).

TableAttr& operator= (const TableAttr& that)
TableAttr& operator= (const Table& table)

Assignment (copy semantics).

~TableAttr()

void set (const Table& table)

Set the object to for another table.

void setRW()

Set the keyword to read/write access. If the table is already open, it will be reopened with read/write access if the table is writable.

void setName (const String& name)

const String& name() const
const Bool openWritable() const
const TableLock& lockOptions() const

Get info.