Computer Assited Medical Intervention Tool Kit  version 4.1
Static Public Member Functions | Private Member Functions | List of all members
ForceUnit Class Reference

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

#include <ForceUnit.h>

Inherits Unit.

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.

Referenced by Loads::xmlRead().

◆ N()

ForceUnit & ForceUnit::N ( )
static

Newtons.

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

◆ PN()

ForceUnit & ForceUnit::PN ( )
static

picoNewtons

Referenced by Loads::xmlRead().


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