72 explicit GCaldb(
const std::string& pathname);
84 std::string
rootdir(
void)
const;
85 void rootdir(
const std::string& pathname);
94 const std::string& filter,
95 const std::string& codename,
96 const std::string& date,
97 const std::string& time,
98 const std::string& expr);
99 const std::string&
mission(
void)
const;
Definition of interface for all GammaLib classes.
Filename class interface definition.
FITS table abstract base class interface definition.
FITS file class interface definition.
Interface class for all GammaLib classes.
Calibration database class.
GCaldb * clone(void) const
Clone calibration database.
std::string classname(void) const
Return class name.
GFits m_fits
CIF FITS file.
void init_members(void)
Initialise class members.
std::string cifname(const std::string &mission, const std::string &instrument="")
Return absolute CIF filename.
std::string path(const std::string &mission, const std::string &instrument="")
Return path to calibration directory.
std::string rootdir(void) const
Return path to CALDB root directory.
GFitsTable * m_cif
Pointer to CIF table.
const std::string & mission(void) const
Return mission.
GCaldb & operator=(const GCaldb &caldb)
Assignment operator.
void open(const std::string &mission, const std::string &instrument="")
Open calibration database.
void copy_members(const GCaldb &caldb)
Copy class members.
virtual ~GCaldb(void)
Destructor.
int size(void) const
Returns number of entries in calibration database.
void free_members(void)
Delete class members.
std::string m_cifname
CIF filename of opened database.
const std::string & instrument(void) const
Return instrument.
GFilename filename(const std::string &detector, const std::string &filter, const std::string &codename, const std::string &date, const std::string &time, const std::string &expr)
Return calibration file name based on selection parameters.
std::string m_instrument
Instrument of opened database.
GCaldb(void)
Void constructor.
void clear(void)
Clear calibration database.
void close(void)
Close calibration database.
std::string print(const GChatter &chatter=NORMAL) const
Print calibration database information.
std::string m_opt_rootdir
Optional root directory.
std::string m_mission
Mission of opened database.
Abstract interface for FITS table.