Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IPhysicalUnitSystem.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* IPhysicalUnitSystemService.h (C) 2000-2025 */
9/* */
10/* Interface of a unit system. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IPHYSICALUNITSYSTEM_H
13#define ARCANE_CORE_IPHYSICALUNITSYSTEM_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
32class ARCANE_CORE_EXPORT IPhysicalUnitSystem
33{
34 public:
35
36 virtual ~IPhysicalUnitSystem() = default;
37
38 public:
39
47
52 virtual IPhysicalUnitConverter* createConverter(const String& from, const String& to) = 0;
53};
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58} // namespace Arcane
59
60/*---------------------------------------------------------------------------*/
61/*---------------------------------------------------------------------------*/
62
63#endif
Declarations of types used in Arcane.
Interface of a unit converter.
Interface of a unit system.
virtual IPhysicalUnitConverter * createConverter(IPhysicalUnit *from, IPhysicalUnit *to)=0
Creates a converter between two units. The caller must destroy the returned converter....
virtual IPhysicalUnitConverter * createConverter(const String &from, const String &to)=0
Creates a converter between two units. The caller must destroy the returned converter.
virtual ~IPhysicalUnitSystem()=default
Releases resources.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --