28 #ifndef TABLES_REFTABLE_H
29 #define TABLES_REFTABLE_H
218 int tableOption,
Bool,
int endianFormat,
284 Bool byColumn)
const;
318 Bool determineOrder)
const;
358 std::map<String,String>& nameMap,
uInt rootRownr(uInt rownr) const
Get rownr in root table.
std::map< String, String > nameMap_p
virtual void flush(Bool fsync, Bool recursive)
Flush the table, i.e.
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 Vector< uInt > rowNumbers() const
Get a vector of row numbers.
virtual Bool adjustRownrs(uInt nrrow, Vector< uInt > &rownrs, Bool determineOrder) const
Adjust the row numbers to be the actual row numbers in the root table.
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.
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.
virtual TableRecord & rwKeywordSet()
Get read/write access to the table keyword set.
static uInt * getStorage(Vector< uInt > &rownrs)
Get the internal pointer in a rowStorage vector.
Vector< uInt > rowStorage_p
virtual Bool asBigEndian() const
Is the table stored in big or little endian format?
virtual Bool canRenameColumn(const String &columnName) const
Test if a column can be renamed (yes).
void refNot(uInt nr1, const uInt *rows1, uInt nrmain)
virtual BaseColumn * getColumn(uInt columnIndex) const
Get a column object using its index.
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
virtual Bool canRemoveColumn(const Vector< String > &columnNames) const
Test if columns can be removed (yes).
void setNrrow(uInt nrrow)
Set the exact number of rows in the 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 Vector< uInt > * rowStorage()
Get row number vector.
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.
void refOr(uInt nr1, const uInt *rows1, uInt nr2, const uInt *rows2)
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.
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.
std::map< String, RefColumn * > colMap_p
void refSub(uInt nr1, const uInt *rows1, uInt nr2, const uInt *rows2)
virtual void removeRow(uInt rownr)
Remove the given row.
Abstract base class for a data manager.
virtual void addColumn(const ColumnDesc &columnDesc, Bool addToParent)
Add one or more columns to the table.
void refAnd(uInt nr1, const uInt *rows1, uInt nr2, const uInt *rows2)
And, or, subtract or xor the row numbers of 2 tables.
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.
RefTable(BaseTable *, Bool rowOrder, uInt initialNrrow)
Create a reference table object referencing the given BaseTable object.
Define the structure of a Casacore table.
void refXor(uInt nr1, const uInt *rows1, uInt nr2, const uInt *rows2)
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.
void addRownr(uInt rownr)
Add a rownr to reference table.
virtual void reopenRW()
Try to reopen the table (the underlying one) for read/write access.
Abstract base class for a table column.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
virtual void resync()
Resync the Table object with the table file.