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