[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project

KLFSysInfo Namespace Reference

Utilities to get system information. More...


Enumerations

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

Functions

KLF_EXPORT QString arch ()
 The architecture of this sytem.
KLF_EXPORT KLFSysInfo::Os os ()
 Which operating system this system is running.
KLF_EXPORT QString osString (Os sysos)
 The operating system we are running, returned as a string.
int sizeofVoidStar ()
 the processor register size.


Detailed Description

Utilities to get system information.

Enumeration Type Documentation

List of known operating systems.

Enumerator:
Linux  systems on which Q_OS_LINUX is defined
Win32  systems on which Q_OS_WIN32 is defined
MacOsX  systems on which Q_OS_DARWIN is defined
OtherOs  systems on which neither Q_OS_{LINUX|WIN32|DARWIN} is defined

Definition at line 85 of file klfdefs.h.


Function Documentation

KLF_EXPORT QString KLFSysInfo::arch (  ) 

The architecture of this sytem.

Returns:
One of "x86" or "x86_64", or QString() for other/unknown.

Definition at line 1012 of file klfdefs.cpp.

KLF_EXPORT KLFSysInfo::Os KLFSysInfo::os (  ) 

Which operating system this system is running.

Returns:
one of the values of the Os enum.

Definition at line 1017 of file klfdefs.cpp.

References Linux, MacOsX, OtherOs, and Win32.

KLF_EXPORT QString KLFSysInfo::osString ( Os  sysos  ) 

The operating system we are running, returned as a string.

Returns:
one of "win32", "linux", "macosx", or QString() for other/unknown.

Definition at line 1030 of file klfdefs.cpp.

References Linux, MacOsX, OtherOs, and Win32.

int KLFSysInfo::sizeofVoidStar (  )  [inline]

the processor register size.

Typically 4 or 8 to indicate a 32-bit or a 64-bit system, respectively.

Definition at line 87 of file klfdefs.h.


Generated by doxygen 1.5.6