68 virtual void clear(
void);
70 virtual std::string
classname(
void)
const;
78 const std::string&
name(
void)
const;
79 void name(
const std::string& name);
83 const std::string& name =
"");
virtual ~GPulsar(void)
Destructor.
void load(const GFilename &filename, const std::string &name="")
Load Pulsar from ephemerides file.
void load_fits(const GFilename &filename, const std::string &name="")
Load Pulsar from ephemerides FITS file.
void free_members(void)
Delete class members.
GPulsarEphemeris & operator[](const int &index)
Return reference to ephemeris.
Definition of interface for all GammaLib classes.
void copy_members(const GPulsar &pulsar)
Copy class members.
bool is_empty(void) const
Signals if there are no ephemerides for pulsar.
const GPulsarEphemeris & ephemeris(const GTime &time) const
Return pulsar ephemeris.
std::string m_name
Pulsar name.
GPulsar(void)
Void constructor.
Interface class for all GammaLib classes.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print Pulsar.
void load_psrtime(const GFilename &filename, const std::string &name="")
Load Pulsar from ephemerides psrtime file.
GPulsarEphemeris & at(const int &index)
Return reference to ephemeris.
Abstract interface for FITS table.
virtual std::string classname(void) const
Return class name.
void load_integral(const GFitsTable *table, const std::string &name="")
Load Pulsar from INTEGRAL ephemerides FITS table.
Good Time Interval class.
void load_fermi(const GFitsTable *table, const std::string &name="")
Load Pulsar from Fermi ephemerides FITS table.
void init_members(void)
Initialise class members.
void load_parfile(const GFilename &filename)
Load Pulsar from ephemeris par file.
GGti validity(void) const
Return validity intervals of pulsar ephemerides.
int size(void) const
Return number of ephemerides for pulsar.
const std::string & name(void) const
Return pulsar name.
virtual void clear(void)
Clear Pulsar.
virtual GPulsar * clone(void) const
Clone Pulsar.
GPulsar & operator=(const GPulsar &pulsar)
Assignment operator.
Pulsar ephemeris class definition.
std::vector< GPulsarEphemeris > m_ephemerides
Pulsar ephemerides.