Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::UdunitsPhysicalUnitSystem Class Reference
Inheritance diagram for Arcane::UdunitsPhysicalUnitSystem:
Collaboration diagram for Arcane::UdunitsPhysicalUnitSystem:

Public Member Functions

 UdunitsPhysicalUnitSystem (ITraceMng *tm)
virtual IPhysicalUnitConvertercreateConverter (IPhysicalUnit *from, IPhysicalUnit *to)
 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)
 Creates a converter between two units. The caller must destroy the returned converter.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const
Public Member Functions inherited from Arcane::IPhysicalUnitSystem
virtual ~IPhysicalUnitSystem ()=default
 Releases resources.

Private Member Functions

UdunitsPhysicalUnitConverter_createConverter (UdunitsPhysicalUnit *from_unit, UdunitsPhysicalUnit *to_unit)
void _checkCreateUnitSystem ()
UdunitsPhysicalUnit_createUnit (const String &name)

Private Attributes

::ut_system * m_unit_system

Additional Inherited Members

Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Definition at line 155 of file UdunitsPhysicalUnitSystemService.cc.

Constructor & Destructor Documentation

◆ UdunitsPhysicalUnitSystem()

Arcane::UdunitsPhysicalUnitSystem::UdunitsPhysicalUnitSystem ( ITraceMng * tm)
inline

Definition at line 161 of file UdunitsPhysicalUnitSystemService.cc.

◆ ~UdunitsPhysicalUnitSystem()

virtual Arcane::UdunitsPhysicalUnitSystem::~UdunitsPhysicalUnitSystem ( )
inlinevirtual

Definition at line 167 of file UdunitsPhysicalUnitSystemService.cc.

Member Function Documentation

◆ _checkCreateUnitSystem()

void Arcane::UdunitsPhysicalUnitSystem::_checkCreateUnitSystem ( )
inlineprivate

Definition at line 207 of file UdunitsPhysicalUnitSystemService.cc.

◆ _createConverter()

UdunitsPhysicalUnitConverter * Arcane::UdunitsPhysicalUnitSystem::_createConverter ( UdunitsPhysicalUnit * from_unit,
UdunitsPhysicalUnit * to_unit )
inlineprivate

Definition at line 196 of file UdunitsPhysicalUnitSystemService.cc.

◆ _createUnit()

UdunitsPhysicalUnit * Arcane::UdunitsPhysicalUnitSystem::_createUnit ( const String & name)
inlineprivate

Definition at line 216 of file UdunitsPhysicalUnitSystemService.cc.

◆ createConverter() [1/2]

virtual IPhysicalUnitConverter * Arcane::UdunitsPhysicalUnitSystem::createConverter ( const String & from,
const String & to )
inlinevirtual

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

Implements Arcane::IPhysicalUnitSystem.

Definition at line 184 of file UdunitsPhysicalUnitSystemService.cc.

References Arcane::TraceAccessor::info().

Here is the call graph for this function:

◆ createConverter() [2/2]

virtual IPhysicalUnitConverter * Arcane::UdunitsPhysicalUnitSystem::createConverter ( IPhysicalUnit * from,
IPhysicalUnit * to )
inlinevirtual

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.

Implements Arcane::IPhysicalUnitSystem.

Definition at line 173 of file UdunitsPhysicalUnitSystemService.cc.

Member Data Documentation

◆ m_unit_system

::ut_system* Arcane::UdunitsPhysicalUnitSystem::m_unit_system
private

Definition at line 226 of file UdunitsPhysicalUnitSystemService.cc.


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