28 #ifndef TABLES_REFTABLE_H
29 #define TABLES_REFTABLE_H
218 int tableOption,
Bool,
int endianFormat,
287 Bool byColumn)
const;
323 Bool determineOrder)
const;
363 std::map<String,String>& nameMap,
std::map< String, String > nameMap_p
virtual void flush(Bool fsync, Bool recursive)
Flush the table, i.e.
void refSub(rownr_t nr1, const rownr_t *rows1, rownr_t nr2, const rownr_t *rows2)
void setNrrow(rownr_t nrrow)
Set the exact number of rows in the table.
virtual void unlock()
Unlock the table.
virtual const StorageOption & storageOption() const
Get the storage option used for the table.
virtual void removeColumn(const Vector< String > &columnNames)
Remove columns.
virtual Bool canRemoveRow() const
Test if it is possible to remove a row from this table.
int tableOption() const
Get the table option.
void showStructureExtra(std::ostream &) const
Show the extra table structure info (name of root table).
virtual TableRecord & keywordSet()
Get readonly access to the table keyword set.
void makeRefCol()
Create the RefColumn objects for all columns in the description.
void writeRefTable(Bool fsync)
Write a reference table.
virtual ~RefTable()
The destructor flushes (i.e.
virtual uInt getModifyCounter() const
Get the modify counter.
virtual void deepCopy(const String &newName, const Record &dataManagerInfo, const StorageOption &, int tableOption, Bool, int endianFormat, Bool noRows) const
Copy the table and all its subtables.
void addRownr(rownr_t rownr)
Add a rownr to reference table.
virtual void removeAllRow()
Remove the given row.
AipsIO is the object persistency mechanism of Casacore.
virtual const TableLock & lockOptions() const
Get the locking info.
virtual Bool isMultiUsed(Bool checkSubTable) const
Is the table in use (i.e.
virtual void mergeLock(const TableLock &lockOptions)
Merge the given lock info with the existing one.
Envelope class for the description of a table column.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Try to lock the table for read or write access.
Bool checkAddColumn(const String &name, Bool addToParent)
Check if a column can be added.
virtual void copy(const String &newName, int tableOption) const
This is doing a shallow copy.
void refOr(rownr_t nr1, const rownr_t *rows1, rownr_t nr2, const rownr_t *rows2)
virtual TableRecord & rwKeywordSet()
Get read/write access to the table keyword set.
static rownr_t * getStorage(Vector< rownr_t > &rownrs)
Get the internal pointer in a rowStorage vector.
virtual Bool asBigEndian() const
Is the table stored in big or little endian format?
void addRownrRange(rownr_t startRownr, rownr_t endRownr)
virtual Bool canRenameColumn(const String &columnName) const
Test if a column can be renamed (yes).
virtual BaseColumn * getColumn(uInt columnIndex) const
Get a column object using its index.
void refNot(rownr_t nr1, const rownr_t *rows1, rownr_t nrmain)
Vector< rownr_t > rowStorage_p
virtual Bool canRemoveColumn(const Vector< String > &columnNames) const
Test if columns can be removed (yes).
virtual void removeRow(rownr_t rownr)
Remove the given row.
virtual Vector< rownr_t > * rowStorage()
Get row number vector.
void refAnd(rownr_t nr1, const rownr_t *rows1, rownr_t nr2, const rownr_t *rows2)
And, or, subtract or xor the row numbers of 2 tables.
virtual Bool adjustRownrs(rownr_t nrrow, Vector< rownr_t > &rownrs, Bool determineOrder) const
Adjust the row numbers to be the actual row numbers in the root table.
virtual void renameColumn(const String &newName, const String &oldName)
Rename a column.
Options defining how table files are organized.
RefTable & operator=(const RefTable &)
Assignment is forbidden, because copying a table requires some more knowledge (like table name of res...
void copyRefTable(const String &newName, int tableOption)
Copy a RefTable that is not persistent.
static void getLayout(TableDesc &desc, AipsIO &ios)
Return the layout of a table (i.e.
virtual DataManager * findDataManager(const String &name, Bool byColumn) const
Find the data manager with the given name or for the given column.
Abstract base class for tables.
Class for a table as a view of another table.
virtual Bool isWritable() const
Test if the parent table is opened as writable.
virtual Bool rowOrder() const
Tell if the table is in row order.
void setup(BaseTable *btp, const Vector< String > &columnNames)
Setup the main parts of the object.
virtual void getPartNames(Block< String > &names, Bool recursive) const
Get the names of the tables this table consists of.
void refXor(rownr_t nr1, const rownr_t *rows1, rownr_t nr2, const rownr_t *rows2)
Options for the Tiled Storage Manager Access.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual TableDesc actualTableDesc() const
Get the actual table description.
virtual int tableType() const
It returns the type of the parent table.
Class to hold table lock options.
A hierarchical collection of named fields of various types.
virtual void renameHypercolumn(const String &newName, const String &oldName)
Rename a hypercolumn.
rownr_t rootRownr(rownr_t rownr) const
Get rownr in root table.
std::map< String, RefColumn * > colMap_p
uInt64 rownr_t
Define the type of a row number in a table.
Abstract base class for a data manager.
virtual void addColumn(const ColumnDesc &columnDesc, Bool addToParent)
Add one or more columns to the table.
static void makeDesc(TableDesc &desc, const TableDesc &rootDesc, std::map< String, String > &nameMap, Vector< String > &names)
Make a table description for the given columns.
virtual Bool hasLock(FileLocker::LockType) const
Has this process the read or write lock, thus can the table be read or written safely?
String: the storage and methods of handling collections of characters.
void addRefCol(const ColumnDesc &cd)
Add a column.
virtual Record dataManagerInfo() const
Get the data manager info.
Define the structure of a Casacore table.
LockType
Define the possible lock types.
const TableDesc & tableDesc() const
Get the table description.
virtual BaseTable * root()
Get parent of this table.
void getRef(AipsIO &, int option, const TableLock &lockOptions, const TSMOption &tsmOption)
Read a reference table from a file.
RefTable(BaseTable *, Bool rowOrder, rownr_t initialNrrow)
Create a reference table object referencing the given BaseTable object.
virtual void reopenRW()
Try to reopen the table (the underlying one) for read/write access.
virtual Vector< rownr_t > rowNumbers() const
Get a vector of row numbers.
Abstract base class for a table column.
virtual void resync()
Resync the Table object with the table file.