27 #ifndef GFITSTABLEBOOLCOL_HPP
28 #define GFITSTABLEBOOLCOL_HPP
57 bool&
operator()(
const int& row,
const int& inx = 0);
58 const bool&
operator()(
const int& row,
const int& inx = 0)
const;
61 virtual void clear(
void);
63 virtual std::string
classname(
void)
const;
64 virtual std::string
string(
const int& row,
const int& col = 0)
const;
65 virtual double real(
const int& row,
const int& col = 0)
const;
66 virtual int integer(
const int& row,
const int& col = 0)
const;
67 virtual void insert(
const int& row,
const int& nrows);
68 virtual void remove(
const int& row,
const int&
nrows);
74 void nulval(
const bool* value);
91 virtual void*
ptr_data(
const int& index = 0);
96 virtual void save(
void);
113 return (
"GFitsTableBoolCol");
virtual GFitsTableBoolCol * clone(void) const
Clone column.
void free_buffer(void) const
Free CFITSIO transfer buffer.
virtual std::string classname(void) const
Return class name.
const std::string & name(void) const
Returns column name.
virtual bool is_loaded(void) const
Checks if column has been loaded.
bool * nulval(void)
Returns pointer to nul value.
virtual void * ptr_data(const int &index=0)
Returns void pointer to column data.
GFitsTableBoolCol(void)
Constructor.
void alloc_buffer(void) const
Allocate CFITSIO transfer buffer.
bool * data(void)
Returns pointer to column data.
virtual double real(const int &row, const int &col=0) const
Get double precision value.
FITS table column abstract base class definition.
GFitsTableBoolCol & operator=(const GFitsTableBoolCol &column)
Assignment operator.
virtual void insert(const int &row, const int &nrows)
Insert rows in column.
virtual std::string ascii_format(void) const
Returns format string of ASCII table.
const int & number(void) const
Returns number of elements in column.
Abstract interface for FITS table column.
FITS table Boolean column.
bool * m_nulval
NULL value.
bool & operator()(const int &row, const int &inx=0)
Column data access operator.
virtual ~GFitsTableBoolCol(void)
Destructor.
void init_members(void)
Initialise class members.
virtual void * ptr_nulval(void)
Returns void pointer to nul value.
virtual void release_data(void)
Release column data.
void alloc_nulval(const bool *value)
Allocate null value.
virtual void resize_data(const int &index, const int &number)
Resize column data.
char * m_buffer
Data area for CFITSIO transfer.
virtual void alloc_data(void)
Allocates column data.
void copy_members(const GFitsTableBoolCol &column)
Copy class members.
const int & nrows(void) const
Returns number of rows in column.
virtual int integer(const int &row, const int &col=0) const
Get integer value.
virtual void fetch_data(void) const
Fetch column data.
virtual void save(void)
Save table column into FITS file.
virtual std::string string(const int &row, const int &col=0) const
Get string value.
virtual void init_data(void)
Initialise column data.
void free_members(void)
Delete class members.
virtual void clear(void)
Clear instance.