CppBenchmark  1.0.4.0
C++ Benchmark Library
Public Member Functions | Static Public Member Functions | List of all members
CppBenchmark::Environment Class Reference

Environment management static class. More...

#include <environment.h>

Public Member Functions

 Environment ()=delete
 
 Environment (const Environment &)=delete
 
 Environment (Environment &&)=delete
 
 ~Environment ()=delete
 
Environmentoperator= (const Environment &)=delete
 
Environmentoperator= (Environment &&)=delete
 

Static Public Member Functions

static bool Is32BitOS ()
 Is 32-bit OS? More...
 
static bool Is64BitOS ()
 Is 64-bit OS? More...
 
static bool Is32BitProcess ()
 Is 32-bit running process? More...
 
static bool Is64BitProcess ()
 Is 64-bit running process? More...
 
static bool IsDebug ()
 Is compiled in debug mode? More...
 
static bool IsRelease ()
 Is compiled in release mode? More...
 
static bool IsBigEndian ()
 Is big-endian system? More...
 
static bool IsLittleEndian ()
 Is little-endian system? More...
 
static std::string OSVersion ()
 Get OS version string. More...
 
static std::string EndLine ()
 Get text end line separator. More...
 
static std::string UnixEndLine ()
 Get Unix text end line separator. More...
 
static std::string WindowsEndLine ()
 Get Windows text end line separator. More...
 
static time_t Timestamp ()
 Get the current time in seconds. More...
 

Detailed Description

Environment management static class.

Provides environment management functionality to get OS bit version, process bit version, debug/release mode, timestamp, etc.

Definition at line 22 of file environment.h.

Constructor & Destructor Documentation

◆ Environment() [1/3]

CppBenchmark::Environment::Environment ( )
delete

◆ Environment() [2/3]

CppBenchmark::Environment::Environment ( const Environment )
delete

◆ Environment() [3/3]

CppBenchmark::Environment::Environment ( Environment &&  )
delete

◆ ~Environment()

CppBenchmark::Environment::~Environment ( )
delete

Member Function Documentation

◆ EndLine()

std::string CppBenchmark::Environment::EndLine ( )
static

Get text end line separator.

Definition at line 407 of file environment.cpp.

◆ Is32BitOS()

bool CppBenchmark::Environment::Is32BitOS ( )
static

Is 32-bit OS?

Definition at line 33 of file environment.cpp.

◆ Is32BitProcess()

bool CppBenchmark::Environment::Is32BitProcess ( )
static

Is 32-bit running process?

Definition at line 57 of file environment.cpp.

◆ Is64BitOS()

bool CppBenchmark::Environment::Is64BitOS ( )
static

Is 64-bit OS?

Definition at line 38 of file environment.cpp.

◆ Is64BitProcess()

bool CppBenchmark::Environment::Is64BitProcess ( )
static

Is 64-bit running process?

Definition at line 62 of file environment.cpp.

◆ IsBigEndian()

bool CppBenchmark::Environment::IsBigEndian ( )
static

Is big-endian system?

Definition at line 95 of file environment.cpp.

◆ IsDebug()

bool CppBenchmark::Environment::IsDebug ( )
static

Is compiled in debug mode?

Definition at line 81 of file environment.cpp.

◆ IsLittleEndian()

bool CppBenchmark::Environment::IsLittleEndian ( )
static

Is little-endian system?

Definition at line 101 of file environment.cpp.

◆ IsRelease()

bool CppBenchmark::Environment::IsRelease ( )
static

Is compiled in release mode?

Definition at line 86 of file environment.cpp.

◆ operator=() [1/2]

Environment& CppBenchmark::Environment::operator= ( const Environment )
delete

◆ operator=() [2/2]

Environment& CppBenchmark::Environment::operator= ( Environment &&  )
delete

◆ OSVersion()

std::string CppBenchmark::Environment::OSVersion ( )
static

Get OS version string.

Definition at line 107 of file environment.cpp.

◆ Timestamp()

time_t CppBenchmark::Environment::Timestamp ( )
static

Get the current time in seconds.

Definition at line 428 of file environment.cpp.

◆ UnixEndLine()

std::string CppBenchmark::Environment::UnixEndLine ( )
static

Get Unix text end line separator.

Definition at line 418 of file environment.cpp.

◆ WindowsEndLine()

std::string CppBenchmark::Environment::WindowsEndLine ( )
static

Get Windows text end line separator.

Definition at line 423 of file environment.cpp.


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