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