14#include "arcane/utils/PlatformUtils.h"
15#include "arcane/utils/NotSupportedException.h"
16#include "arcane/utils/TraceInfo.h"
17#include "arcane/utils/ArrayView.h"
19#include "arcane/core/IPhysicalUnitSystemService.h"
20#include "arcane/core/IPhysicalUnitSystem.h"
21#include "arcane/core/IPhysicalUnitConverter.h"
22#include "arcane/core/IPhysicalUnit.h"
45 friend class NullPhysicalUnitSystem;
62class NullPhysicalUnitConverter
67 NullPhysicalUnitConverter()
82 ARCANE_UNUSED(input_values);
83 ARCANE_UNUSED(output_values);
107class NullPhysicalUnitSystem
112 NullPhysicalUnitSystem() =
default;
137class NullPhysicalUnitSystemService
142 NullPhysicalUnitSystemService() =
default;
146 void build()
override {}
165extern "C++" IPhysicalUnitSystemService*
166createNullPhysicalUnitSystemService()
168 IPhysicalUnitSystemService* s =
new NullPhysicalUnitSystemService();
Interface of a unit converter.
Interface of a service managing a unit system.
Interface of a unit system.
Exception when an operation is not supported.
Real convert(Real value) override
Returns the converted value of value.
IPhysicalUnit * fromUnit() override
Starting unit.
IPhysicalUnit * toUnit() override
Target unit.
void convert(RealConstArrayView input_values, RealArrayView output_values) override
Returns the converted values of input_values in output_values.
IPhysicalUnitSystem * createStandardUnitSystem() override
Creates a unit system for the International System SI.
IPhysicalUnitConverter * createConverter(IPhysicalUnit *from, IPhysicalUnit *to) override
Creates a converter between two units. The caller must destroy the returned converter....
IPhysicalUnitConverter * createConverter(const String &from, const String &to) override
Creates a converter between two units. The caller must destroy the returned converter.
const String & name() const override
Unit name.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
double Real
Type representing a real number.
ArrayView< Real > RealArrayView
C equivalent of a 1D array of reals.
ConstArrayView< Real > RealConstArrayView
C equivalent of a 1D array of reals.