72 explicit GCaldb(
const std::string& pathname);
84 std::string
rootdir(
void)
const;
85 void rootdir(
const std::string& pathname);
86 std::string
path(
const std::string& mission,
87 const std::string& instrument =
"");
88 std::string
cifname(
const std::string& mission,
89 const std::string& instrument =
"");
90 void open(
const std::string& mission,
91 const std::string& instrument =
"");
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;
GCaldb & operator=(const GCaldb &caldb)
Assignment operator.
int size(void) const
Returns number of entries in calibration database.
std::string path(const std::string &mission, const std::string &instrument="")
Return path to calibration directory.
std::string m_mission
Mission of opened database.
void free_members(void)
Delete class members.
const std::string & mission(void) const
Return mission.
GCaldb * clone(void) const
Clone calibration database.
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.
Definition of interface for all GammaLib classes.
GFits m_fits
CIF FITS file.
void init_members(void)
Initialise class members.
FITS file class interface definition.
virtual ~GCaldb(void)
Destructor.
void copy_members(const GCaldb &caldb)
Copy class members.
std::string m_instrument
Instrument of opened database.
void close(void)
Close calibration database.
void open(const std::string &mission, const std::string &instrument="")
Open calibration database.
const std::string & instrument(void) const
Return instrument.
std::string m_cifname
CIF filename of opened database.
Calibration database class.
GCaldb(void)
Void constructor.
Interface class for all GammaLib classes.
Abstract interface for FITS table.
std::string classname(void) const
Return class name.
std::string m_opt_rootdir
Optional root directory.
GFitsTable * m_cif
Pointer to CIF table.
std::string cifname(const std::string &mission, const std::string &instrument="")
Return absolute CIF filename.
std::string print(const GChatter &chatter=NORMAL) const
Print calibration database information.
void clear(void)
Clear calibration database.
std::string rootdir(void) const
Return path to CALDB root directory.
Filename class interface definition.
FITS table abstract base class interface definition.