Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ModuleProperty.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/* ModuleProperty.h (C) 2000-2018 */
9/* */
10/* Module properties. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MODULEPROPERTY_H
13#define ARCANE_MODULEPROPERTY_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
38class ARCANE_CORE_EXPORT ModuleProperty
39{
40 public:
41
45 ModuleProperty(const char* aname, bool is_autoload) ARCANE_NOEXCEPT
46 : m_name(aname)
47 , m_is_autoload(is_autoload)
48 {
49 }
50
54 explicit ModuleProperty(const char* aname) ARCANE_NOEXCEPT
55 : m_name(aname)
56 , m_is_autoload(false)
57 {
58 }
59
60 public:
61
63 const char* name() const { return m_name; }
64
66 bool isAutoload() const { return m_is_autoload; }
67
68 private:
69
70 const char* m_name;
71 bool m_is_autoload;
72};
73
74/*---------------------------------------------------------------------------*/
75/*---------------------------------------------------------------------------*/
76
77} // End namespace Arcane
78
79/*---------------------------------------------------------------------------*/
80/*---------------------------------------------------------------------------*/
81
82#endif
Arcane configuration file.
ModuleProperty(const char *aname) ARCANE_NOEXCEPT
Constructs an instance for a module named aname.
ModuleProperty(const char *aname, bool is_autoload) ARCANE_NOEXCEPT
Constructs an instance for a module named aname.
bool isAutoload() const
Indicates if the module is automatically loaded.
const char * name() const
Module name.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --