27 #ifndef GFITSTABLEBITCOL_HPP
28 #define GFITSTABLEBITCOL_HPP
56 bool&
operator()(
const int& row,
const int& inx = 0);
57 const bool&
operator()(
const int& row,
const int& inx = 0)
const;
60 virtual void clear(
void);
62 virtual std::string
classname(
void)
const;
63 virtual std::string
string(
const int& row,
const int& col = 0)
const;
64 virtual double real(
const int& row,
const int& col = 0)
const;
65 virtual int integer(
const int& row,
const int& col = 0)
const;
66 virtual void insert(
const int& row,
const int& nrows);
67 virtual void remove(
const int& row,
const int&
nrows);
71 unsigned char*
data(
void);
72 unsigned char*
nulval(
void);
73 void nulval(
const unsigned char* value);
81 void get_bit(
const int& row,
const int& inx);
90 virtual void*
ptr_data(
const int& index = 0);
121 return (
"GFitsTableBitCol");
int m_bits
Total number of Bits in column.
virtual void release_data(void)
Release column data.
virtual int integer(const int &row, const int &col=0) const
Get integer value.
void free_members(void)
Delete class members.
virtual void resize_data(const int &index, const int &number)
Resize column data.
virtual std::string string(const int &row, const int &col=0) const
Get string value.
virtual ~GFitsTableBitCol(void)
Destructor.
virtual GFitsTableBitCol * clone(void) const
Clone column.
bool m_bit_value
Actual bit to be accessed.
const std::string & name(void) const
Returns column name.
virtual void insert(const int &row, const int &nrows)
Insert rows in column.
virtual void clear(void)
Clear instance.
unsigned char * m_data
Data area.
void init_members(void)
Initialise class members.
bool m_bit_pending
Bit value has to be written back.
void copy_members(const GFitsTableBitCol &column)
Copy class members.
bool & operator()(const int &row, const int &inx=0)
Column data access operator.
unsigned char * m_nulval
NULL value.
FITS table column abstract base class definition.
virtual void * ptr_nulval(void)
Returns void pointer to nul value.
const int & number(void) const
Returns number of elements in column.
virtual double real(const int &row, const int &col=0) const
Get double precision value.
int m_bits_per_row
Number of Bits per row.
Abstract interface for FITS table column.
virtual std::string classname(void) const
Return class name.
GFitsTableBitCol & operator=(const GFitsTableBitCol &column)
Assignment operator.
unsigned char * nulval(void)
Returns pointer to nul value.
virtual bool is_loaded(void) const
Checks if column has been loaded.
virtual void alloc_data(void)
Allocates column data.
int m_bit_byte
Row of actual bit to be accessed.
virtual void fetch_data(void) const
Fetch column data.
void get_bit(const int &row, const int &inx)
Get Bit for boolean access.
virtual void * ptr_data(const int &index=0)
Returns void pointer to column data.
virtual void save_column(void)
Save table column into FITS file.
int m_bit_mask
Index of actual bit to be accessed.
const int & nrows(void) const
Returns number of rows in column.
GFitsTableBitCol(void)
Constructor.
int m_bytes_per_row
Number of Bytes per row.
virtual void load_column(void)
Load table column from FITS file.
void set_pending(void)
Set pending Bit.
unsigned char * data(void)
Returns pointer to column data.
virtual std::string ascii_format(void) const
Returns format string of ASCII table.
virtual void init_data(void)
Initialise column data.
void alloc_nulval(const unsigned char *value)
Allocates null value.