xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

btrymeter.cc File Reference
#include "btrymeter.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <string.h>
#include <errno.h>
#include <fstream>
#include <string>
#include <iostream>
#include <sstream>
Include dependency graph for btrymeter.cc:

Go to the source code of this file.

Variables

static const char APMFILENAME [] = "/proc/apm"
 
static const char ACPIBATTERYDIR [] = "/proc/acpi/battery"
 
static const char SYSPOWERDIR [] = "/sys/class/power_supply"
 

Variable Documentation

◆ ACPIBATTERYDIR

const char ACPIBATTERYDIR[] = "/proc/acpi/battery"
static

Definition at line 23 of file btrymeter.cc.

Referenced by BtryMeter::getacpi_or_sys_info(), and BtryMeter::has_acpi().

◆ APMFILENAME

const char APMFILENAME[] = "/proc/apm"
static

Definition at line 22 of file btrymeter.cc.

Referenced by BtryMeter::getapminfo(), and BtryMeter::has_apm().

◆ SYSPOWERDIR

const char SYSPOWERDIR[] = "/sys/class/power_supply"
static

Definition at line 24 of file btrymeter.cc.

Referenced by BtryMeter::getacpi_or_sys_info(), and BtryMeter::has_syspower().