Arcane  v3.16.4.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
IPhysicalUnitSystem.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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 d'un système d'unité. */
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/*!
28 * \internal
29 * \brief Interface d'un système d'unité.
30 */
31class ARCANE_CORE_EXPORT IPhysicalUnitSystem
32{
33 public:
34
35 virtual ~IPhysicalUnitSystem() = default; //!< Libère les ressources.
36
37 public:
38
39 /*!
40 * \brief Créé un convertisseur entre deux unités.
41 * L'appelant doit détruire le convertisseur retourné.
42 * Les unités \a from et \a to doivent avoir été créées par ce
43 * système d'unité.
44 */
46
47 /*!
48 * \brief Créé un convertisseur entre deux unités.
49 * L'appelant doit détruire le convertisseur retourné.
50 */
51 virtual IPhysicalUnitConverter* createConverter(const String& from, const String& to) = 0;
52};
53
54/*---------------------------------------------------------------------------*/
55/*---------------------------------------------------------------------------*/
56
57} // namespace Arcane
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62#endif
Déclarations des types utilisés dans Arcane.
virtual IPhysicalUnitConverter * createConverter(IPhysicalUnit *from, IPhysicalUnit *to)=0
Créé un convertisseur entre deux unités. L'appelant doit détruire le convertisseur retourné....
virtual IPhysicalUnitConverter * createConverter(const String &from, const String &to)=0
Créé un convertisseur entre deux unités. L'appelant doit détruire le convertisseur retourné.
virtual ~IPhysicalUnitSystem()=default
Libère les ressources.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-