Computer Assited Medical Intervention Tool Kit  version 5.0
ForceUnit Class Reference

Class that defines the different units of a Load 'Force'. More...

#include <ForceUnit.h>

Static Public Member Functions

static ForceUnitKN ()
 KiloNewtons. More...
 
static ForceUnitN ()
 Newtons. More...
 
static ForceUnitPN ()
 picoNewtons More...
 

Private Member Functions

 ForceUnit (std::string n)
 private constructor More...
 

Additional Inherited Members

- Public Member Functions inherited from Unit
std::string getUnitName ()
 
virtual ~Unit ()=default
 
- Protected Attributes inherited from Unit
std::string unitString
 

Detailed Description

Class that defines the different units of a Load 'Force'.

Note
This class implements the type-safe design pattern.

Constructor & Destructor Documentation

◆ ForceUnit()

ForceUnit::ForceUnit ( std::string  n)
inlineprivate

private constructor

References Unit::unitString.

Member Function Documentation

◆ KN()

ForceUnit & ForceUnit::KN ( )
static

KiloNewtons.

References KN().

Referenced by KN(), and Loads::xmlRead().

◆ N()

ForceUnit & ForceUnit::N ( )
static

Newtons.

References N().

Referenced by Force::Force(), N(), and Loads::xmlRead().

◆ PN()

ForceUnit & ForceUnit::PN ( )
static

picoNewtons

References PN().

Referenced by PN(), and Loads::xmlRead().


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