casa::TableAttr Class Reference
[Tables_internal_classes]

#include <TableAttr.h>

Collaboration diagram for casa::TableAttr:

Collaboration graph
[legend]
List of all members.

Detailed Description

Some attributes of a table.

Intended use:

Internal

Review Status

Reviewed By:
Mark Wieringa
Date Reviewed:
1996/04/15
Test programs:
tTableRecord

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.

Definition at line 77 of file TableAttr.h.

Public Member Functions

 TableAttr ()
 Default constructor results in empty name.
 TableAttr (const Table &table)
 Construct the attributes from the table.
 TableAttr (const TableAttr &that)
 Copy constructor (copy semantics).
 ~TableAttr ()
void set (const Table &table)
 Set the object to for another table.
void setRW ()
 Set the keyword to read/write access.
void setName (const String &name)
TableAttroperator= (const TableAttr &that)
 Assignment (copy semantics).
TableAttroperator= (const Table &table)
const Stringname () const
 Get info.
const Bool openWritable () const
const TableLocklockOptions () const

Private Attributes

String name_p
Bool openWritable_p
TableLock lockOptions_p


Constructor & Destructor Documentation

casa::TableAttr::TableAttr (  ) 

Default constructor results in empty name.

casa::TableAttr::TableAttr ( const Table table  )  [explicit]

Construct the attributes from the table.

casa::TableAttr::TableAttr ( const String name,
Bool  openWritable = False 
) [explicit]

Construct with given values.

casa::TableAttr::TableAttr ( const String name,
Bool  openWritable,
const TableLock  
)

casa::TableAttr::TableAttr ( const TableAttr that  ) 

Copy constructor (copy semantics).

casa::TableAttr::~TableAttr (  ) 

casa::TableAttr::TableAttr ( const String name,
Bool  openWritable = False 
) [explicit]

Construct with given values.

casa::TableAttr::TableAttr ( const String name,
Bool  openWritable,
const TableLock  
)


Member Function Documentation

TableAttr& casa::TableAttr::operator= ( const TableAttr that  ) 

Assignment (copy semantics).

TableAttr& casa::TableAttr::operator= ( const Table table  ) 

void casa::TableAttr::set ( const Table table  ) 

Set the object to for another table.

void casa::TableAttr::setRW (  )  [inline]

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.

Definition at line 109 of file TableAttr.h.

References openWritable_p, and casa::True.

void casa::TableAttr::setName ( const String name  )  [inline]

Definition at line 112 of file TableAttr.h.

References name(), and name_p.

const String& casa::TableAttr::name (  )  const [inline]

Get info.

Definition at line 117 of file TableAttr.h.

References name_p.

Referenced by setName(), and casa::TableKeyword::tableName().

const Bool casa::TableAttr::openWritable (  )  const [inline]

Definition at line 119 of file TableAttr.h.

References openWritable_p.

const TableLock& casa::TableAttr::lockOptions (  )  const [inline]

Definition at line 121 of file TableAttr.h.

References lockOptions_p.


Member Data Documentation

String casa::TableAttr::name_p [private]

Definition at line 126 of file TableAttr.h.

Referenced by name(), and setName().

Bool casa::TableAttr::openWritable_p [private]

Definition at line 127 of file TableAttr.h.

Referenced by openWritable(), and setRW().

TableLock casa::TableAttr::lockOptions_p [private]

Definition at line 128 of file TableAttr.h.

Referenced by lockOptions().


The documentation for this class was generated from the following file:
Generated on Mon Sep 1 22:45:41 2008 for NRAOCASA by  doxygen 1.5.1