Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ModuleProperty Class Reference

Module creation properties. More...

#include <arcane/core/ModuleProperty.h>

Public Member Functions

 ModuleProperty (const char *aname, bool is_autoload) ARCANE_NOEXCEPT
 Constructs an instance for a module named aname.
 ModuleProperty (const char *aname) ARCANE_NOEXCEPT
 Constructs an instance for a module named aname.
const char * name () const
 Module name.
bool isAutoload () const
 Indicates if the module is automatically loaded.

Detailed Description

Module creation properties.

This class is used in module registration macros and can therefore be instantiated as a global variable before entering the code's main(). It must therefore only contain Plain Object Data (POD) fields.

Generally, instances of this class are used when registering a service via the ARCANE_REGISTER_MODULES() macro.

Definition at line 38 of file ModuleProperty.h.

Constructor & Destructor Documentation

◆ ModuleProperty() [1/2]

Arcane::ModuleProperty::ModuleProperty ( const char * aname,
bool is_autoload )
inline

Constructs an instance for a module named aname.

Definition at line 45 of file ModuleProperty.h.

◆ ModuleProperty() [2/2]

Arcane::ModuleProperty::ModuleProperty ( const char * aname)
inlineexplicit

Constructs an instance for a module named aname.

Definition at line 54 of file ModuleProperty.h.

Member Function Documentation

◆ isAutoload()

bool Arcane::ModuleProperty::isAutoload ( ) const
inline

Indicates if the module is automatically loaded.

Definition at line 66 of file ModuleProperty.h.

◆ name()

const char * Arcane::ModuleProperty::name ( ) const
inline

Module name.

Definition at line 63 of file ModuleProperty.h.


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