[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Classes | Namespaces | Macros | Enumerations | Functions
klfsysinfo.h File Reference
#include <klfdefs.h>
Include dependency graph for klfsysinfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  KLFSysInfo::BatteryInfo
 

Namespaces

 KLFSysInfo
 Utilities to get system information.
 

Macros

#define KLF_PATH_SEP
 The character used in the $PATH environment variable to separate different locations. More...
 
#define KLF_DIR_SEP   '/'
 

Enumerations

enum  KLFSysInfo::Os { KLFSysInfo::Linux, KLFSysInfo::Win32, KLFSysInfo::MacOsX, KLFSysInfo::OtherOs }
 List of known operating systems. More...
 

Functions

int KLFSysInfo::sizeofVoidStar ()
 the processor register size. More...
 
KLF_EXPORT QString KLFSysInfo::arch ()
 The architecture of this sytem. More...
 
KLF_EXPORT QString KLFSysInfo::makeSysArch (const QString &os, const QString &arch)
 
KLF_EXPORT bool KLFSysInfo::isCompatibleSysArch (const QString &sysarch)
 
KLF_EXPORT KLFSysInfo::Os KLFSysInfo::os ()
 Which operating system this system is running. More...
 
KLF_EXPORT QString KLFSysInfo::osString (KLFSysInfo::Os sysos=os())
 The operating system we are running, returned as a string. More...
 
KLF_EXPORT BatteryInfo KLFSysInfo::batteryInfo ()
 
KLF_EXPORT bool KLFSysInfo::isLaptop ()
 
KLF_EXPORT bool KLFSysInfo::isOnBatteryPower ()
 

Macro Definition Documentation

◆ KLF_DIR_SEP

#define KLF_DIR_SEP   '/'

Definition at line 65 of file klfsysinfo.h.

◆ KLF_PATH_SEP

#define KLF_PATH_SEP

The character used in the $PATH environment variable to separate different locations.

Expands to ':' (colon) on unices/Mac and to ';' (semicolon) on Windows.

Note that the character is given as a char (observe the single-quotes), not in a string.

Definition at line 64 of file klfsysinfo.h.

Referenced by klfJoinEnvironmentPath(), klfSearchPath(), klfSetEnvironmentPath(), and klfSplitEnvironmentPath().


Generated by doxygen 1.8.13