63 virtual void clear(
void);
65 virtual std::string
classname(
void)
const;
70 bool alive(
void)
const;
void update_countries_data(GXml &xml, const GCsv &statistics)
Update countries in high-level statistics data.
void update_host_country(void)
Update host country.
void update_dates(GXml &xml, const GCsv &statistics)
Update dates in high-level statistics header.
void write_heartbeat(void)
Write heartbeat file.
void create_lock_file(void)
Create the lock file.
void init_members(void)
Initialise class members.
Definition of interface for all GammaLib classes.
Comma-separated values table class.
virtual GDaemon * clone(void) const
Clone Daemon.
int m_period
Wake-up period in seconds.
void update_daily(GXml &xml, const GCsv &statistics)
Update daily statistics.
void update_countries_header(GXml &xml, const GCsv &statistics)
Update countries in high-level statistics header.
pid_t lock_pid(void) const
Returns process ID in lock file.
GFilename lock_filename(void) const
Returns name of daemon lock file.
void update_statistics(void)
Update application statistics.
void create_xml(const GFilename &filename)
Create high-level statistics XML file.
void update_versions_data(GXml &xml, const GCsv &statistics)
Update versions in high-level statistics data.
Information logger interface definition.
void delete_lock_file(void)
Delete daemon lock file.
bool alive(void) const
Check if daemon is alive.
Interface class for all GammaLib classes.
int m_heartbeat
Heartbeat period in seconds.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print Daemon.
void free_members(void)
Delete class members.
GFilename gamma_filename(const std::string &name)
Returns filename in .gamma directory.
virtual std::string classname(void) const
Return class name.
void copy_members(const GDaemon &daemon)
Copy class members.
GDaemon(void)
Void constructor.
virtual ~GDaemon(void)
Destructor.
Information logger class definition.
GChatter m_chatter
Chattiness of logger.
virtual void clear(void)
Clear Daemon.
GDaemon & operator=(const GDaemon &daemon)
Assignment operator.
void recover_valid_xml(void)
Recovers a valid XML file.
void start(void)
Starts the daemon.
GFilename heartbeat_filename(void) const
Returns name of daemon heartbeat file.
Filename class interface definition.
GFilename statistics_filename(void) const