Wolframe, 0.0.3

platform class More...

#include <platform.hpp>

Public Member Functions

 Platform ()
 Empty Version constructor. This will contruct an empty Platform object having version numbers set to 0 and string be empty. More...
 
 Platform (const Platform &o)
 
std::string toString () const
 Print the plaform in human readable format. More...
 

Static Public Member Functions

static Platform makePlatform ()
 Create platform from makefile system. This is the platform set for building the software not where the software was build on nor the where it is run on (think cross-compilation and compatible distributions) More...
 
static Platform runtimePlatform ()
 Create plaform as seen at runtime. This function uses functions to determine the runtime platform we are running on, not the platform we built the software for. More...
 

Private Attributes

std::string m_os
 Operating system. More...
 
bool m_hasOsVersion
 OS has a version? More...
 
unsigned short m_os_major
 Operating system major version. More...
 
unsigned short m_os_minor
 Operating system minor version. More...
 
bool m_hasDisto
 Is it a Linux distribution? More...
 
std::string m_distro
 Name of the Linux distribution. More...
 
bool m_hasDistroVersion
 Distribution has a version? More...
 
unsigned short m_distro_major
 Linux distribution major version. More...
 
unsigned short m_distro_minor
 Linux distribution minor version. More...
 

Detailed Description

platform class

Constructor & Destructor Documentation

_Wolframe::Platform::Platform ( )
inline

Empty Version constructor. This will contruct an empty Platform object having version numbers set to 0 and string be empty.

_Wolframe::Platform::Platform ( const Platform o)
inline

Member Function Documentation

static Platform _Wolframe::Platform::makePlatform ( )
static

Create platform from makefile system. This is the platform set for building the software not where the software was build on nor the where it is run on (think cross-compilation and compatible distributions)

static Platform _Wolframe::Platform::runtimePlatform ( )
static

Create plaform as seen at runtime. This function uses functions to determine the runtime platform we are running on, not the platform we built the software for.

std::string _Wolframe::Platform::toString ( ) const

Print the plaform in human readable format.

Member Data Documentation

std::string _Wolframe::Platform::m_distro
private

Name of the Linux distribution.

unsigned short _Wolframe::Platform::m_distro_major
private

Linux distribution major version.

unsigned short _Wolframe::Platform::m_distro_minor
private

Linux distribution minor version.

bool _Wolframe::Platform::m_hasDisto
private

Is it a Linux distribution?

bool _Wolframe::Platform::m_hasDistroVersion
private

Distribution has a version?

bool _Wolframe::Platform::m_hasOsVersion
private

OS has a version?

std::string _Wolframe::Platform::m_os
private

Operating system.

unsigned short _Wolframe::Platform::m_os_major
private

Operating system major version.

unsigned short _Wolframe::Platform::m_os_minor
private

Operating system minor version.


The documentation for this class was generated from the following file: