Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::IPhysicalUnitSystem Class Referenceabstract

Interface of a unit system. More...

#include <arcane/core/IPhysicalUnitSystem.h>

Inheritance diagram for Arcane::IPhysicalUnitSystem:
Collaboration diagram for Arcane::IPhysicalUnitSystem:

Public Member Functions

virtual ~IPhysicalUnitSystem ()=default
 Releases resources.
virtual IPhysicalUnitConvertercreateConverter (IPhysicalUnit *from, IPhysicalUnit *to)=0
 Creates a converter between two units. The caller must destroy the returned converter. The units from and to must have been created by this unit system.
virtual IPhysicalUnitConvertercreateConverter (const String &from, const String &to)=0
 Creates a converter between two units. The caller must destroy the returned converter.

Detailed Description

Interface of a unit system.

Definition at line 32 of file IPhysicalUnitSystem.h.

Member Function Documentation

◆ createConverter() [1/2]

virtual IPhysicalUnitConverter * Arcane::IPhysicalUnitSystem::createConverter ( const String & from,
const String & to )
pure virtual

Creates a converter between two units. The caller must destroy the returned converter.

Implemented in Arcane::NullPhysicalUnitSystem, and Arcane::UdunitsPhysicalUnitSystem.

◆ createConverter() [2/2]

virtual IPhysicalUnitConverter * Arcane::IPhysicalUnitSystem::createConverter ( IPhysicalUnit * from,
IPhysicalUnit * to )
pure virtual

Creates a converter between two units. The caller must destroy the returned converter. The units from and to must have been created by this unit system.

Implemented in Arcane::NullPhysicalUnitSystem, and Arcane::UdunitsPhysicalUnitSystem.


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