#include <TableAttr.h>
Collaboration diagram for casa::TableAttr:

Internal
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 ).
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) |
| TableAttr & | operator= (const TableAttr &that) |
| Assignment (copy semantics). | |
| TableAttr & | operator= (const Table &table) |
| const String & | name () const |
| Get info. | |
| const Bool | openWritable () const |
| const TableLock & | lockOptions () const |
Private Attributes | |
| String | name_p |
| Bool | openWritable_p |
| TableLock | lockOptions_p |
| casa::TableAttr::TableAttr | ( | ) |
Default constructor results in empty name.
| casa::TableAttr::TableAttr | ( | const Table & | table | ) | [explicit] |
Construct the attributes from the table.
Construct with given values.
| casa::TableAttr::TableAttr | ( | const TableAttr & | that | ) |
Copy constructor (copy semantics).
| casa::TableAttr::~TableAttr | ( | ) |
Construct with given values.
| 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] |
| 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] |
| const TableLock& casa::TableAttr::lockOptions | ( | ) | const [inline] |
String casa::TableAttr::name_p [private] |
Bool casa::TableAttr::openWritable_p [private] |
TableLock casa::TableAttr::lockOptions_p [private] |
1.5.1