27 #ifndef GTIMEREFERENCE_HPP
28 #define GTIMEREFERENCE_HPP
64 const std::string&
timesys =
"TT",
65 const std::string&
timeref =
"LOCAL");
67 const double& mrdreff,
68 const std::string& timeunit,
69 const std::string&
timesys =
"TT",
70 const std::string&
timeref =
"LOCAL");
85 void set(
const double& mrdref,
86 const std::string& timeunit,
87 const std::string&
timesys =
"TT",
88 const std::string&
timeref =
"LOCAL");
89 void set(
const int& mjdrefi,
91 const std::string& timeunit,
92 const std::string&
timesys =
"TT",
93 const std::string&
timeref =
"LOCAL");
94 const double&
mjdref(
void)
const;
97 const std::string&
timeunit(
void)
const;
98 const std::string&
timesys(
void)
const;
99 const std::string&
timeref(
void)
const;
126 return (
"GTimeReference");
void clear(void)
Clear time reference.
std::string m_timeunit
Time unit.
GTimeReference(void)
Void constructor.
double mjdreff(void) const
Returns fractional part of MJD reference (units: days)
const std::string & timeunit(void) const
Return time unit.
void write(GFitsHDU &hdu) const
Write time reference into FITS header.
int mjdrefi(void) const
Returns integer part of MJD reference (units: days)
Abstract FITS extension base class.
double m_mjdref
Time MJD reference (days)
void read(const GFitsHDU &hdu)
Read time reference from FITS header.
void free_members(void)
Delete class members.
Definition of interface for all GammaLib classes.
double unitseconds(void) const
Return the time unit in seconds.
GTimeReference & operator=(const GTimeReference &ref)
Assignment operator.
const double & mjdref(void) const
Return MJD reference (units: days)
Interface class for all GammaLib classes.
std::string classname(void) const
Return class name.
const std::string & timesys(void) const
Return time system.
void copy_members(const GTimeReference &ref)
Copy class members.
virtual ~GTimeReference(void)
Destructor.
const std::string & timeref(void) const
Return time reference.
std::string print(const GChatter &chatter=NORMAL) const
Print time reference.
void set(const double &mrdref, const std::string &timeunit, const std::string ×ys="TT", const std::string &timeref="LOCAL")
Set time reference.
GTimeReference * clone(void) const
Clone object.
Implements a time reference.
std::string m_timeref
Time reference.
std::string m_timesys
Time system.
void init_members(void)
Initialise class members.
bool m_unit_sec
True: unit is seconds, False: unit is days.