28 #ifndef TABLES_COLDESCSET_H 29 #define TABLES_COLDESCSET_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/tables/Tables/ColumnDesc.h> 34 #include <casacore/casa/Containers/SimOrdMap.h> 35 #include <casacore/casa/BasicSL/String.h> 36 #include <casacore/casa/iosfwd.h> 109 {
return cols_p.ndefined(); }
113 {
return (
cols_p.isDefined (name)); }
130 Bool& equalDataTypes)
const;
134 {
return other.
isSubset (*
this, equalDataTypes); }
139 Bool& equalDataTypes)
const 150 void show (ostream& os)
const;
166 void remove (
const String& name);
Bool isStrictSubset(const ColumnDescSet &other, Bool &equalDataTypes) const
Test if this set is a strict subset of another one, thus if it is a subset and not equal...
Bool isDefined(const String &name) const
Test if a column is defined in this set.
ColumnDescSet & operator=(const ColumnDescSet &)
Assignment (copy semantics).
AipsIO is the object persistency mechanism of Casacore.
Envelope class for the description of a table column.
uInt ncolumn() const
Get nr of columns in this set.
Bool isDisjoint(const ColumnDescSet &other) const
Test if this and the other column set are disjoint.
Bool isStrictSuperset(const ColumnDescSet &other, Bool &equalDataTypes) const
Test if this set is a strict superset of another one, thus if it is a superset and not equal...
Bool isSuperset(const ColumnDescSet &other, Bool &equalDataTypes) const
Test if this set is a superset of another one.
Bool isSubset(const ColumnDescSet &other, Bool &equalDataTypes) const
Test if this set is a subset of another one.
Simple map with keys ordered.
Block< void * > colSeq_p
The order of addition of column descriptions.
ColumnDesc & operator[](const String &name)
Get a column by its name.
void getFile(AipsIO &, const TableAttr &)
Get the object.
Set of table column descriptions.
void checkSubTableDesc() const
Check recursevily if the descriptions of all subtables are known.
Bool allExist(const ColumnDescSet &, Bool &equalDataTypes) const
Test if all columns are part of the other set.
void add(const ColumnDescSet &set)
Add another (disjoint) column set.
bool Bool
Define the standard types used by Casacore.
void putFile(AipsIO &ios, const TableAttr &) const
Put the object.
ColumnDesc & addColumn(const ColumnDesc &)
Add a column.
String: the storage and methods of handling collections of characters.
Bool isEqual(const ColumnDescSet &other, Bool &equalDataTypes) const
Test if this set equals another one.
void rename(const String &newname, const String &oldname)
Rename a column in the set.
Define the structure of a Casacore table.
Some attributes of a table.
ColumnDescSet()
Construct an empty column set.
this file contains all the compiler specific defines
void show(ostream &os) const
Get const access to the column descriptions.
SimpleOrderedMap< String, ColumnDesc > cols_p
The set of all columns.