powerd++  0.4.4
Classes | Enumerations | Variables
anonymous_namespace{clas.cpp} Namespace Reference

File local scope. More...

Classes

struct  Value
 Determine the unit of a string encoded value. More...
 

Enumerations

enum  Unit : size_t {
  Unit::SCALAR, Unit::PERCENT, Unit::SECOND, Unit::MILLISECOND,
  Unit::HZ, Unit::KHZ, Unit::MHZ, Unit::GHZ,
  Unit::THZ, Unit::CELSIUS, Unit::KELVIN, Unit::FAHRENHEIT,
  Unit::RANKINE, Unit::UNKNOWN
}
 Command line argument units. More...
 

Variables

const char *const UnitStr []
 The unit strings on the command line, for the respective Unit instances. More...
 

Detailed Description

File local scope.

Enumeration Type Documentation

◆ Unit

enum anonymous_namespace{clas.cpp}::Unit : size_t
strong

Command line argument units.

These units are supported for command line arguments, for SCALAR arguments the behaviour of powerd is to be imitated.

Enumerator
SCALAR 

Values without a unit.

PERCENT 

%

SECOND 

s

MILLISECOND 

ms

HZ 

hz

KHZ 

khz

MHZ 

mhz

GHZ 

ghz

THZ 

thz

CELSIUS 

C.

KELVIN 

K.

FAHRENHEIT 

F.

RANKINE 

R.

UNKNOWN 

Unknown unit.

Variable Documentation

◆ UnitStr

const char* const anonymous_namespace{clas.cpp}::UnitStr[]
Initial value:
{
"", "%", "s", "ms", "hz", "khz", "mhz", "ghz", "thz", "C", "K", "F", "R"
}

The unit strings on the command line, for the respective Unit instances.