Base class for options using services.
More...
#include <arcane/core/CaseOptionService.h>
Base class for options using services.
Instances of this class are not copyable.
Definition at line 136 of file CaseOptionService.h.
◆ CaseOptionService()
| Arcane::CaseOptionService::CaseOptionService |
( |
const CaseOptionBuildInfo & | cob, |
|
|
bool | allow_null, |
|
|
bool | is_optional ) |
|
inline |
◆ _impl() [1/2]
◆ _impl() [2/2]
◆ addAlternativeNodeName()
| void Arcane::CaseOptionService::addAlternativeNodeName |
( |
const String & | lang, |
|
|
const String & | name ) |
|
inline |
◆ addDefaultValue()
| void Arcane::CaseOptionService::addDefaultValue |
( |
const String & | category, |
|
|
const String & | value ) |
|
inline |
◆ getAvailableNames()
| void Arcane::CaseOptionService::getAvailableNames |
( |
StringArray & | names | ) |
const |
|
inline |
◆ isOptional()
| bool Arcane::CaseOptionService::isOptional |
( |
| ) |
const |
|
inline |
◆ isPresent()
| bool Arcane::CaseOptionService::isPresent |
( |
| ) |
const |
|
inline |
◆ meshName()
| String Arcane::CaseOptionService::meshName |
( |
| ) |
const |
Mesh name to which the service is associated.
This is the name of the mesh as specified in the service descriptor (the 'axl' file). To get the associated mesh after reading the options you must use ICaseOptions::meshHandle().
Definition at line 97 of file CaseOptionService.cc.
◆ name()
| String Arcane::CaseOptionService::name |
( |
| ) |
const |
|
inline |
◆ operator CaseOptions &()
◆ operator const CaseOptions &()
| Arcane::CaseOptionService::operator const CaseOptions & |
( |
| ) |
const |
|
inline |
◆ rootTagName()
| String Arcane::CaseOptionService::rootTagName |
( |
| ) |
const |
|
inline |
◆ serviceName()
| String Arcane::CaseOptionService::serviceName |
( |
| ) |
const |
|
inline |
◆ setDefaultValue()
| void Arcane::CaseOptionService::setDefaultValue |
( |
const String & | def_value | ) |
|
|
inline |
Sets the default value for the service name.
If the option is not present in the data set, its value will be that specified by the def_value argument; otherwise, calling this method has no effect.
This method can only be called during phase 1 of reading the data set because the service is already instantiated afterwards. A FatalErrorException exception is raised if this method is called and the service is already instantiated.
Definition at line 192 of file CaseOptionService.h.
◆ setMeshName()
| void Arcane::CaseOptionService::setMeshName |
( |
const String & | mesh_name | ) |
|
Sets the mesh name to which the service will be associated.
If null, the service is associated with the default mesh of the subdomain (ISubDomain::defaultMeshHandle()). The actual association happens when reading the options. Calling this method after reading the options will have no impact.
Definition at line 88 of file CaseOptionService.cc.
◆ toICaseOptions()
| const ICaseOptions * Arcane::CaseOptionService::toICaseOptions |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: