73 void remove(
const std::string& colname);
77 const int&
nrows(
void)
const;
78 const int&
ncols(
void)
const;
79 bool contains(
const std::string& colname)
const;
107 int colnum(
const std::string& colname)
const;
Abstract FITS extension base class definition.
FITS table column abstract base class definition.
Abstract FITS extension base class.
std::string typecode(int type) const
Return typecode as string.
Abstract interface for FITS table column.
Abstract interface for FITS table.
void data_save(void)
Save table into FITS file.
virtual HDUType exttype(void) const =0
void data_open(void *vptr)
Open Table.
void remove(const int &colnum)
Remove column from the table.
void update_header(void)
Update header after row or column manipulations.
char * get_tunit(const int &colnum) const
Returns pointer to column unit.
int m_type
Table type (1=ASCII, 2=Binary)
void data_close(void)
Close table.
bool contains(const std::string &colname) const
Checks the presence of a column in table.
GFitsTableCol * ptr_column(const std::string &colname) const
Returns pointer of column with given name.
void data_connect(void *vptr)
Connect table data to FITS file.
void free_members(void)
Free class members.
virtual ~GFitsTable(void)
Destructor.
virtual GFitsTable * clone(void) const =0
Clones object.
GFitsTableCol * set(const int &colnum, const GFitsTableCol &column)
Set column.
GFitsTableCol * append(const GFitsTableCol &column)
Append column to the table.
void init_members(void)
Initialise class members.
int colnum(const std::string &colname) const
Returns column number of a given column name.
void free_columns(void)
Free column pointers.
GFitsTableCol * insert(int colnum, const GFitsTableCol &column)
Insert column into the table.
void append_rows(const int &nrows)
Append rows to the table.
GFitsTableCol ** m_columns
Array of table columns.
GFitsTableCol * alloc_column(int typecode) const
Allocates column.
char * get_tform(const int &colnum) const
Returns pointer to column format.
void insert_rows(const int &row, const int &nrows)
Insert rows into the table.
const int & nrows(void) const
Return number of rows in table.
GFitsTable & operator=(const GFitsTable &table)
Assignment operator.
GFitsTableCol * operator[](const int &colnum)
Returns pointer to table column.
int m_rows
Number of rows in table.
virtual void clear(void)=0
Clear object.
void remove_rows(const int &row, const int &nrows)
Remove rows from the table.
void copy_members(const GFitsTable &table)
Copy class members.
std::string print(const GChatter &chatter=NORMAL) const
Print table information.
const int & ncols(void) const
Return number of columns in table.
int m_cols
Number of columns in table.
virtual std::string classname(void) const =0
Return class name.
char * get_ttype(const int &colnum) const
Returns pointer to column type.
GFitsTable(void)
Void constructor.