casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
TableUtil.h File Reference
#include <casacore/casa/aips.h>
#include <casacore/tables/Tables/Table.h>
#include <casacore/tables/Tables/TableLock.h>
#include <casacore/tables/DataMan/TSMOption.h>
#include <casacore/casa/Containers/Record.h>
#include <casacore/casa/Utilities/DataType.h>

Go to the source code of this file.

Namespaces

 casacore
 this file contains all the compiler specific defines
 
 casacore::TableUtil
 The TableUtil namespace contains several convenience functions operating on Table objects.
 

Functions

Table casacore::TableUtil::openTable (const String &tableName, Table::TableOption=Table::Old, const TSMOption &=TSMOption())
 Try to open a table. More...
 
Table casacore::TableUtil::openTable (const String &tableName, const TableLock &lockOptions, Table::TableOption=Table::Old, const TSMOption &=TSMOption())
 
Table casacore::TableUtil::createTable (const String &tableName, const TableDesc &, Table::TableOption, Table::TableType=Table::Plain, const StorageOption &=StorageOption(), const Record &dmInfo=Record(), const TableLock &lockOptions=TableLock(), rownr_t nrrow=0, Bool initialize=False, Table::EndianFormat=Table::AipsrcEndian, const TSMOption &=TSMOption())
 Create a table with the given name and description. More...
 
Table casacore::TableUtil::createSubTable (Table &parent, const String &subtableName, const TableDesc &desc, Table::TableOption, const StorageOption &=StorageOption(), const Record &dmInfo=Record(), const TableLock &lockOptions=TableLock(), rownr_t nrrow=0, Bool initialize=False, Table::EndianFormat=Table::AipsrcEndian, const TSMOption &=TSMOption())
 
Bool casacore::TableUtil::canDeleteTable (const String &tableName, Bool checkSubTables=False)
 Can the table be deleted? If true, function deleteTable can safely be called. More...
 
Bool casacore::TableUtil::canDeleteTable (String &message, const String &tableName, Bool checkSubTables=False, Bool splitColons=True)
 
Bool casacore::TableUtil::canDeleteSubTable (String &message, const Table &parent, const String &subtableName, Bool checkSubTables=False)
 
void casacore::TableUtil::deleteTable (const String &tableName, Bool checkSubTables=False)
 Delete the table. More...
 
void casacore::TableUtil::deleteSubTable (Table &parent, const String &subtableName, Bool checkSubTables=False)
 
rownr_t casacore::TableUtil::getLayout (TableDesc &desc, const String &tableName)
 Return the layout of a table (i.e. More...
 
TableInfo casacore::TableUtil::tableInfo (const String &tableName)
 Get the table info of the table with the given name. More...
 
String casacore::TableUtil::getFullName (const String &tableName)
 Get the full name (absolute path) of the given table name, which can be a subtable specification using ::. More...
 
std::pair< Table, String > casacore::TableUtil::findParentTable (const String &fullName, const TableLock &lockOptions=TableLock(), Table::TableOption option=Table::Old, const TSMOption &tsmOption=TSMOption())
 Find the parent table of the last subtable in a table name containing :: to indicate subtables. More...