Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
IPhysicalUnit.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/* IPhysicalUnit.h (C) 2000-2025 */
9/* */
10/* Physical unit. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IPHYSICALUNIT_H
13#define ARCANE_CORE_IPHYSICALUNIT_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*!
29 * \internal
30 * \brief Physical unit.
31 *
32 * This interface represents a physical unit such as the meter or the kilo.
33 */
34class ARCANE_CORE_EXPORT IPhysicalUnit
35{
36 public:
37
38 virtual ~IPhysicalUnit() = default; //!< Releases resources.
39
40 public:
41
42 //! Unit name
43 virtual const String& name() const = 0;
44};
45
46/*---------------------------------------------------------------------------*/
47/*---------------------------------------------------------------------------*/
48
49} // namespace Arcane
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
53
54#endif
Arcane configuration file.
virtual const String & name() const =0
Unit name.
virtual ~IPhysicalUnit()=default
Releases resources.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --