73 virtual void clear(
void) = 0;
75 virtual std::string
classname(
void)
const = 0;
80 int cards(
void)
const;
81 const std::string&
extname(
void)
const;
83 const int&
extno(
void)
const;
87 bool has_card(
const int& cardno)
const;
88 bool has_card(
const std::string& keyname)
const;
94 void card(
const std::string& keyname,
95 const std::string& value,
96 const std::string& comment);
97 void card(
const std::string& keyname,
99 const std::string& comment);
100 void card(
const std::string& keyname,
102 const std::string& comment);
103 void card(
const std::string& keyname,
105 const std::string& comment);
106 void card(
const std::string& keyname,
108 const std::string& comment);
109 std::string
string(
const std::string& keyname)
const;
110 double real(
const std::string& keyname)
const;
111 int integer(
const std::string& keyname)
const;
121 void open(
void* vptr,
int hdunum);
124 std::string
typecode(
int type)
const;
326 const std::string& comment)
343 const std::string& comment)
360 const std::string& comment)
377 const std::string& comment)
394 const std::string& comment)
396 std::string
string(value);
bool has_card(const int &cardno) const
Check existence of header card.
std::string print_hdu(const GChatter &chatter=NORMAL) const
Print basic HDU information.
void open(void *vptr, int hdunum)
Open HDU.
Abstract FITS extension base class.
void connect(void *fptr)
Connect HDU to FITS file.
Definition of interface for all GammaLib classes.
virtual HDUType exttype(void) const =0
void move_to_hdu(void)
Move FITS file pointer to HDU.
void * m_fitsfile
FITS file pointer pointing on actual HDU.
std::string m_name
HDU name (extname)
const GFitsHeader & header(void) const
Return extension header.
const int & extno(void) const
Return extension number.
GFitsHDU & operator=(const GFitsHDU &hdu)
Assignment operator.
int cards(void) const
Return number of cards in HDU header.
virtual void data_open(void *vptr)=0
double real(const std::string &keyname) const
Return card value as double precision.
void save(void)
Saves HDU.
virtual void clear(void)=0
Clear object.
Interface class for all GammaLib classes.
virtual std::string classname(void) const =0
Return class name.
virtual void data_connect(void *vptr)=0
HDUType get_hdu_type(void) const
Get HDU type from FITS file.
virtual GFitsHDU * clone(void) const =0
Clones object.
int integer(const std::string &keyname) const
Return card value as integer.
GFitsHeader m_header
HDU header.
virtual void data_save(void)=0
const std::string & extname(void) const
Return extension name.
void init_members(void)
Initialise class members.
std::string typecode(int type) const
Return typecode as string.
virtual void data_close(void)=0
GFitsHDU(void)
Void constructor.
virtual std::string print(const GChatter &chatter=NORMAL) const =0
Print content of object.
std::string string(const std::string &keyname) const
Return card value as string.
void copy_members(const GFitsHDU &hdu)
Copy class members.
void free_members(void)
Delete class members.
virtual ~GFitsHDU(void)
Destructor.
GFitsHeaderCard & card(const int &cardno)
Return header card.
int extno(const std::string &extname) const
Return extension number for specified extension name.
int m_hdunum
HDU number (starting from 0)