27 #ifndef GFITSTABLESHORTCOL_HPP
28 #define GFITSTABLESHORTCOL_HPP
54 short&
operator()(
const int& row,
const int& inx = 0);
55 const short&
operator()(
const int& row,
const int& inx = 0)
const;
58 virtual void clear(
void);
60 virtual std::string
classname(
void)
const;
61 virtual std::string
string(
const int& row,
const int& col = 0)
const;
62 virtual double real(
const int& row,
const int& col = 0)
const;
63 virtual int integer(
const int& row,
const int& col = 0)
const;
64 virtual void insert(
const int& row,
const int& nrows);
65 virtual void remove(
const int& row,
const int&
nrows);
71 void nulval(
const short* value);
86 virtual void*
ptr_data(
const int& index = 0);
104 return (
"GFitsTableShortCol");
virtual ~GFitsTableShortCol(void)
Destructor.
virtual bool is_loaded(void) const
Checks if column has been loaded.
virtual double real(const int &row, const int &col=0) const
Get double precision value.
const std::string & name(void) const
Returns column name.
void copy_members(const GFitsTableShortCol &column)
Copy class members.
GFitsTableShortCol & operator=(const GFitsTableShortCol &column)
Assignment operator.
FITS table column abstract base class definition.
virtual void clear(void)
Clear instance.
virtual std::string string(const int &row, const int &col=0) const
Get string value.
virtual void init_data(void)
Initialise column data.
const int & number(void) const
Returns number of elements in column.
virtual void * ptr_data(const int &index=0)
Returns void pointer to column data.
Abstract interface for FITS table column.
void init_members(void)
Initialise class members.
virtual void * ptr_nulval(void)
Returns void pointer to nul value.
virtual std::string ascii_format(void) const
Returns format string of ASCII table.
virtual int integer(const int &row, const int &col=0) const
Get integer value.
virtual void alloc_data(void)
Allocates column data.
void free_members(void)
Delete class members.
short & operator()(const int &row, const int &inx=0)
Column data access operator.
virtual std::string classname(void) const
Return class name.
virtual void insert(const int &row, const int &nrows)
Insert rows in column.
short * m_nulval
NULL value.
short * m_data
Data vector.
FITS table short integer column.
virtual GFitsTableShortCol * clone(void) const
Clone column.
GFitsTableShortCol(void)
Constructor.
short * nulval(void)
Returns pointer to nul value.
const int & nrows(void) const
Returns number of rows in column.
virtual void fetch_data(void) const
Fetch column data.
short * data(void)
Returns pointer to column data.
virtual void resize_data(const int &index, const int &number)
Resize column data.
virtual void release_data(void)
Release column data.
void alloc_nulval(const short *value)
Allocates null value.