DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
Units.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  DynExp
 DynExp's main namespace contains the implementation of DynExp including classes to manage resources (DynExp objects like hardware adapters, instruments, and modules) as well as their dependencies and parameters.
 
namespace  DynExp::Units
 

Functions

bool DynExp::Units::IsIntegerUnit (UnitType Unit)
 Checks whether Unit implies integer values.
 
bool DynExp::Units::IsIntensityUnit (UnitType Unit)
 Checks whether Unit is an intensity-like unit.
 
bool DynExp::Units::IsTimeUnit (UnitType Unit)
 Checks whether Unit is a time-like unit.
 
bool DynExp::Units::IsTimeUnitStrict (UnitType Unit)
 Checks whether Unit is a time unit (excluding UnitType::Index).
 
bool DynExp::Units::IsIndexUnit (UnitType Unit)
 Checks whether Unit is a sample index unit (UnitType::Index).
 
bool DynExp::Units::IsFrequencyUnit (UnitType Unit)
 Checks whether Unit is a frequency-like unit.
 
const char * DynExp::Units::UnitCategoryToStr (UnitType Unit)
 Returns a descriptive string of the given unit's category (e.g. 'intensity').
 
const char * DynExp::Units::UnitTypeToStr (UnitType Unit)
 Returns a descriptive string of the given unit's type (e.g. 'dBm').
 
std::string DynExp::Units::UnitToStr (UnitType Unit)
 Returns a descriptive string of a respective unit category and type to be e.g. used in plots.