OpendTect-6_4  6.4
Classes | Functions
unitofmeasure.h File Reference
Include dependency graph for unitofmeasure.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UnitOfMeasure
 Unit of Measure. More...
 
class  UnitOfMeasureRepository
 Repository of all Units of Measure in the system. More...
 

Functions

UnitOfMeasureRepositoryUoMR ()
 
template<class T >
void convValue (T &val, const UnitOfMeasure *oldunit, const UnitOfMeasure *newunit)
 
template<class T >
getConvertedValue (T val, const UnitOfMeasure *oldunit, const UnitOfMeasure *newunit)
 

Function Documentation

template<class T >
void convValue ( T &  val,
const UnitOfMeasure oldunit,
const UnitOfMeasure newunit 
)

Converts from one unit into another. Both units may be null (hence the non-member function).

template<class T >
T getConvertedValue ( val,
const UnitOfMeasure oldunit,
const UnitOfMeasure newunit 
)
inline

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019