28 #ifndef TABLES_TABLEDESC_H
29 #define TABLES_TABLEDESC_H
45 template<
class T>
class Vector;
337 void show (ostream& os)
const;
479 const String& hypercolumnName);
538 {
return col_p[index]; }
540 {
return col_p[index]; }
544 {
return col_p[index]; }
A 1-D Specialization of the Array class.
std::vector< double > Vector
Bool isColumn(const String &name) const
Test if a column with this name exists.
void checkSubTableDesc() const
Check recursively if the descriptions of all subtables are known.
void add(const TableDesc &other, Bool addKeywordSet=True)
Add another table description to this table description.
Search path for table files.
void remove(const String &name)
Remove a column.
ColumnDesc & addColumn(const ColumnDesc &)
Add a column to the table description.
void init(const TabPath &)
Initialize the table description.
const ColumnDesc & columnDesc(const String &name) const
Get the column description by name or by index.
void removeColumn(const String &name)
Remove a column.
AipsIO is the object persistency mechanism of Casacore.
TableRecord & rwKeywordSet()
Get access to the keyword set.
uInt ncolumn() const
Get number of columns.
Envelope class for the description of a table column.
void removeIDhypercolumns(const Vector< String > &hcNames)
Remove ID-columns from the given hypercolumn definitions and set their default data manager type to I...
void renameHypercolumn(const String &newHypercolumnName, const String &hypercolumnName)
virtual casacore::String type() const
Implements RegionShape::type.
const String & getType() const
Get the table type (i.e.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
void renameColumn(const String &newname, const String &oldname)
Rename a column.
uInt ncolumn() const
Get nr of columns in this set.
static Bool isReadable(const String &tableDescName)
Test if a description file exists (i.e.
uInt hypercolumnDesc(const String &hypercolumnName, Vector< String > &dataColumnNames, Vector< String > &coordColumnNames, Vector< String > &idColumnNames) const
Get the columns involved in a hypercolumn.
Vector< String > columnNames() const
Get a vector containing all column names.
const String & version() const
Get the table description version.
~TableDesc()
The destructor writes the table description if changed.
const ColumnDesc & operator[](const String &name) const
void removeHypercolumnDesc(const String &hypercolumnName)
Remove given hypercolumn definition.
void adjustHypercolumns(const std::map< String, String > &old2new, Bool keepUnknownData=False, Bool keepUnknownCoord=False, Bool keppUnknownId=False)
Adjust the hypercolumn definitions (for a RefTable).
void putFile(AipsIO &, const TableAttr &) const
Put the table description into the file.
void getFile(AipsIO &, const TableAttr &)
Get the table description from the file.
Bool isHypercolumn(const String &hypercolumnName) const
Test if the given hypercolumn exists.
const String & comment() const
Get comment string.
Set of table column descriptions.
LatticeExprNode ndim(const LatticeExprNode &expr)
1-argument function to get the dimensionality of a lattice.
Bool isDefined(const String &name) const
Test if a column is defined in this set.
const TableRecord & keywordSet() const
bool Bool
Define the standard types used by Casacore.
TableDesc()
The default constructor creates a table description with option = Scratch and a blank name...
A hierarchical collection of named fields of various types.
const TableRecord & privateKeywordSet() const
Get readonly access to the private set of keywords.
void throwHypercolumn(const String &hyperColumnName, const String &message)
Throw an invalid hypercolumn exception.
void defineHypercolumn(const String &hypercolumnName, uInt ndim, const Vector< String > &dataColumnNames)
Define a hypercolumn.
const ColumnDescSet & columnDescSet() const
Get access to the set of column descriptions.
ColumnDesc & addColumn(const ColumnDesc &)
Add a column.
void checkSubTableDesc() const
Check recursevily if the descriptions of all subtables are known.
String: the storage and methods of handling collections of characters.
TableDesc & operator=(const TableDesc &)
Assignment is not supported, because it is impossible to define its semantics.
Define the structure of a Casacore table.
ColumnDesc & rwColumnDesc(const String &name)
Some attributes of a table.
void show() const
Show the table description on cout.
void copy(const TableDesc &, const TabPath &, Bool copyColumns)
Initialize and copy a table description.
Vector< String > hypercolumnNames() const
Get the names of all hypercolumns.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.