casacore
|
Some attributes of a table. More...
#include <TableAttr.h>
Public Member Functions | |
TableAttr () | |
Default constructor results in empty name. More... | |
TableAttr (const Table &table) | |
Construct the attributes from the table. More... | |
TableAttr (const String &name, Bool openWritable=False) | |
Construct with given values. More... | |
TableAttr (const String &name, Bool openWritable, const TableLock &) | |
TableAttr (const TableAttr &that) | |
Copy constructor (copy semantics). More... | |
TableAttr & | operator= (const TableAttr &that) |
Assignment (copy semantics). More... | |
TableAttr & | operator= (const Table &table) |
~TableAttr () | |
void | set (const Table &table) |
Set the object to for another table. More... | |
void | setRW () |
Set the keyword to read/write access. More... | |
void | setName (const String &name) |
const String & | name () const |
Get info. More... | |
Bool | openWritable () const |
const TableLock & | lockOptions () const |
Private Attributes | |
String | name_p |
Bool | openWritable_p |
TableLock | lockOptions_p |
Some attributes of a table.
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.
casacore::TableAttr::TableAttr | ( | ) |
Default constructor results in empty name.
|
explicit |
Construct the attributes from the table.
Construct with given values.
casacore::TableAttr::TableAttr | ( | const TableAttr & | that | ) |
Copy constructor (copy semantics).
casacore::TableAttr::~TableAttr | ( | ) |
|
inline |
Definition at line 119 of file TableAttr.h.
References lockOptions_p.
|
inline |
Get info.
Definition at line 115 of file TableAttr.h.
References name_p.
Referenced by setName(), and casacore::TableKeyword::tableName().
|
inline |
Definition at line 117 of file TableAttr.h.
References openWritable_p.
void casacore::TableAttr::set | ( | const Table & | table | ) |
Set the object to for another table.
|
inline |
Definition at line 110 of file TableAttr.h.
|
inline |
Set the keyword to read/write access.
Definition at line 107 of file TableAttr.h.
References openWritable_p, and casacore::True.
|
private |
Definition at line 126 of file TableAttr.h.
Referenced by lockOptions().
|
private |
Definition at line 124 of file TableAttr.h.
|
private |
Definition at line 125 of file TableAttr.h.
Referenced by openWritable(), and setRW().