Base class for a data set options list. More...
#include <arcane/core/CaseOptions.h>
Classes | |
| struct | XmlContent |
Public Member Functions | |
| CaseOptions (ICaseMng *cm, const String &name) | |
| Constructs an options set. | |
| CaseOptions (ICaseOptionList *, const String &name) | |
| Constructs an options set. | |
| CaseOptions (ICaseMng *cm, const String &name, const XmlNode &parent) | |
| Constructs an options set. | |
| CaseOptions (ICaseOptionList *, const String &name, const XmlNode &parent, bool is_optional=false, bool is_multi=false) | |
| Constructs an options set. | |
| ~CaseOptions () override | |
| Frees resources. | |
| String | rootTagTrueName () const override |
| Returns the true name (non-translated) of the element. | |
| String | rootTagName () const override |
| Returns the name of the element in the data set language. | |
| String | translatedName (const String &lang) const override |
| Name in language lang of the option. Returns rootTagTrueName() if no translation exists. | |
| virtual String | trueName () const |
| Returns the true name (non-translated) of the element. | |
| virtual String | name () const |
| Returns the name of the element in the data set language. | |
| void | read (bool is_phase1) override |
| void | read (eCaseOptionReadPhase phase) override |
| Performs the reading of the read_phase phase of the options. | |
| void | addInvalidChildren (XmlNodeList &) override |
| Adds unrecognized elements to nlist. | |
| void | printChildren (const String &lang, int indent) override |
| IServiceInfo * | caseServiceInfo () const override |
| Returns the associated service or 0 if none exists. | |
| IModule * | caseModule () const override |
| Returns the associated module or 0 if none exists. | |
| void | setCaseServiceInfo (IServiceInfo *m) override |
| Associates service m with this data set. | |
| void | setCaseModule (IModule *m) override |
| Associates module m with this data set. | |
| void | deepGetChildren (Array< CaseOptionBase * > &col) override |
| Adds all child options to the list col. | |
| ICaseOptionList * | configList () override |
| const ICaseOptionList * | configList () const override |
| ICaseFunction * | activateFunction () override |
| Function indicating the activation status of the option. | |
| bool | isPresent () const override |
| True if the option is present in the file, false if it is the default value. | |
| void | addAlternativeNodeName (const String &lang, const String &name) override |
| Adds a translation for the option name. Adds the option name name corresponding to language lang. If a translation already exists for this language, it is replaced by this one. | |
| ICaseMng * | caseMng () const override |
| ITraceMng * | traceMng () const override |
| ISubDomain * | subDomain () const override |
| Associated sub-domain. | |
| IMesh * | mesh () const override |
| MeshHandle | meshHandle () const override |
| ICaseDocument * | caseDocument () const override |
| ICaseDocumentFragment * | caseDocumentFragment () const override |
| void | detach () override |
| void | visit (ICaseDocumentVisitor *visitor) const override |
| Applies the visitor to this option. | |
| String | xpathFullName () const override |
| Full name in XPath format corresponding to rootElement(). | |
| Ref< ICaseOptions > | toReference () override |
Protected Member Functions | |
| CaseOptions (ICaseMng *, const String &name, ICaseOptionList *parent) | |
| Constructs an options set. | |
| CaseOptions (ICaseOptionList *, const String &name, ICaseOptionList *parent) | |
| Constructs an options set. | |
| void | _setTranslatedName () |
| bool | _setMeshHandleAndCheckDisabled (const String &mesh_name) |
| Positions the mesh associated with this option. | |
Protected Attributes | |
| CaseOptionsPrivate * | m_p |
| Implementation. | |
Private Member Functions | |
| ARCCORE_DEFINE_REFERENCE_COUNTED_INCLASS_METHODS () | |
| CaseOptions (ICaseMng *, const XmlContent &xm_content) | |
| CaseOptions (const CaseOptions &rhs)=delete | |
| CaseOptions & | operator= (const CaseOptions &rhs)=delete |
| void | _setMeshHandle (const MeshHandle &handle) |
| void | _setParent (ICaseOptionList *parent) |
| Private Member Functions inherited from Arcane::ReferenceCounterImpl | |
| void | addReference () |
| void | removeReference () |
| void | _internalAddReference () |
| bool | _internalRemoveReference () |
Static Private Member Functions | |
| static ReferenceCounter< ICaseOptions > | createDynamic (ICaseMng *cm, const AxlOptionsBuilder::Document &options_doc) |
Friends | |
| class | ServiceBuilderWithOptionsBase |
| class | CaseOptionMultiServiceImpl |
Base class for a data set options list.
Instances of this class must all be allocated by the new() operator and must not be destroyed; the case manager (ICaseMng) handles this.
Definition at line 55 of file CaseOptions.h.
Constructs an options set.
Definition at line 108 of file CaseOptions.cc.
References m_p, name(), and Arcane::ICaseMng::registerOptions().
| Arcane::CaseOptions::CaseOptions | ( | ICaseOptionList * | parent, |
| const String & | name ) |
Constructs an options set.
Definition at line 131 of file CaseOptions.cc.
References m_p, and Arcane::ICaseMng::registerOptions().
| Arcane::CaseOptions::CaseOptions | ( | ICaseOptionList * | parent, |
| const String & | name, | ||
| const XmlNode & | parent, | ||
| bool | is_optional = false, | ||
| bool | is_multi = false ) |
|
protected |
Constructs an options set.
Definition at line 158 of file CaseOptions.cc.
References m_p, and Arcane::ICaseMng::registerOptions().
|
protected |
|
private |
Definition at line 182 of file CaseOptions.cc.
References Arcane::ICaseMng::_internalImpl(), Arcane::ICaseMngInternal::createDocumentFragment(), Arcane::IXmlDocumentHolder::documentNode(), and m_p.
|
override |
Frees resources.
Definition at line 199 of file CaseOptions.cc.
|
private |
Definition at line 397 of file CaseOptions.cc.
|
protected |
Positions the mesh associated with this option.
If mesh_name is null or empty, the mesh associated with this option is that of the parent option. If the option has no parent, it is the default mesh.
If mesh_name is not null, there are two possibilities:
| true | if the option is disabled following this call. |
Definition at line 433 of file CaseOptions.cc.
References Arcane::String::empty(), Arcane::IMeshMng::findMeshHandle(), m_p, and Arcane::MeshHandle::meshMng().
|
private |
Definition at line 407 of file CaseOptions.cc.
|
protected |
Definition at line 459 of file CaseOptions.cc.
|
overridevirtual |
Function indicating the activation status of the option.
Implements Arcane::ICaseOptions.
Definition at line 493 of file CaseOptions.cc.
References m_p.
|
overridevirtual |
Adds a translation for the option name. Adds the option name name corresponding to language lang. If a translation already exists for this language, it is replaced by this one.
Implements Arcane::ICaseOptions.
Definition at line 262 of file CaseOptions.cc.
|
overridevirtual |
Adds unrecognized elements to nlist.
Implements Arcane::ICaseOptions.
Definition at line 562 of file CaseOptions.cc.
References m_p.
|
overridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 376 of file CaseOptions.cc.
|
overridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 385 of file CaseOptions.cc.
|
overridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 331 of file CaseOptions.cc.
|
overridevirtual |
Returns the associated module or 0 if none exists.
Implements Arcane::ICaseOptions.
Definition at line 304 of file CaseOptions.cc.
References m_p.
|
overridevirtual |
Returns the associated service or 0 if none exists.
Implements Arcane::ICaseOptions.
Definition at line 295 of file CaseOptions.cc.
References m_p.
|
overridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 286 of file CaseOptions.cc.
|
overridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 277 of file CaseOptions.cc.
|
staticprivate |
Definition at line 598 of file CaseOptions.cc.
|
overridevirtual |
Adds all child options to the list col.
Implements Arcane::ICaseOptions.
Definition at line 589 of file CaseOptions.cc.
References m_p.
|
overridevirtual |
Detaches the option from its parent.
Implements Arcane::ICaseOptions.
Definition at line 214 of file CaseOptions.cc.
References m_p.
Referenced by ~CaseOptions().
|
overridevirtual |
True if the option is present in the file, false if it is the default value.
Implements Arcane::ICaseOptions.
Definition at line 244 of file CaseOptions.cc.
References m_p.
|
overridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 367 of file CaseOptions.cc.
|
overridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 358 of file CaseOptions.cc.
|
inlinevirtual |
Returns the name of the element in the data set language.
Definition at line 122 of file CaseOptions.h.
References rootTagName().
Referenced by addAlternativeNodeName(), and CaseOptions().
|
overridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 571 of file CaseOptions.cc.
|
inlineoverridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 124 of file CaseOptions.h.
|
overridevirtual |
Performs the reading of the read_phase phase of the options.
Implements Arcane::ICaseOptions.
Reimplemented in Arcane::CaseOptionServiceImpl.
Definition at line 502 of file CaseOptions.cc.
References Arcane::CaseOptionError::addError(), Arcane::XmlNode::attrValue(), Arcane::ICaseDocumentFragment::caseNodeNames(), Arcane::ITraceMng::info(), m_p, Arcane::ICaseFunction::name(), Arcane::String::null(), Arcane::ICaseFunction::ParamReal, Arcane::ICaseFunction::paramType(), Arcane::ICaseFunction::ValueBool, Arcane::ICaseFunction::valueType(), and Arcane::XmlNode::xpathFullName().
|
overridevirtual |
Returns the name of the element in the data set language.
Implements Arcane::ICaseOptions.
Definition at line 235 of file CaseOptions.cc.
References m_p.
Referenced by name().
|
overridevirtual |
Returns the true name (non-translated) of the element.
Implements Arcane::ICaseOptions.
Definition at line 226 of file CaseOptions.cc.
References m_p.
Referenced by trueName().
|
overridevirtual |
Associates module m with this data set.
Implements Arcane::ICaseOptions.
Definition at line 322 of file CaseOptions.cc.
References m_p.
|
overridevirtual |
Associates service m with this data set.
Implements Arcane::ICaseOptions.
Definition at line 313 of file CaseOptions.cc.
References m_p.
|
overridevirtual |
Associated sub-domain.
Implements Arcane::ICaseOptions.
Definition at line 349 of file CaseOptions.cc.
References m_p.
|
overridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 613 of file CaseOptions.cc.
|
overridevirtual |
Implements Arcane::ICaseOptions.
Definition at line 340 of file CaseOptions.cc.
Name in language lang of the option. Returns rootTagTrueName() if no translation exists.
Implements Arcane::ICaseOptions.
Definition at line 479 of file CaseOptions.cc.
References m_p, and Arcane::String::null().
|
inlinevirtual |
Returns the true name (non-translated) of the element.
Definition at line 119 of file CaseOptions.h.
References rootTagTrueName().
|
overridevirtual |
Applies the visitor to this option.
Implements Arcane::ICaseOptions.
Reimplemented in Arcane::CaseOptionServiceImpl.
Definition at line 580 of file CaseOptions.cc.
References m_p.
Referenced by Arcane::CaseOptionServiceImpl::visit().
|
overridevirtual |
Full name in XPath format corresponding to rootElement().
Implements Arcane::ICaseOptions.
Definition at line 253 of file CaseOptions.cc.
References m_p.
|
friend |
Definition at line 190 of file CaseOptions.h.
|
friend |
Definition at line 89 of file CaseOptions.h.
|
protected |
Implementation.
Definition at line 197 of file CaseOptions.h.
Referenced by _setMeshHandleAndCheckDisabled(), activateFunction(), addAlternativeNodeName(), addInvalidChildren(), caseModule(), CaseOptions(), CaseOptions(), CaseOptions(), CaseOptions(), CaseOptions(), CaseOptions(), CaseOptions(), caseServiceInfo(), deepGetChildren(), detach(), isPresent(), read(), rootTagName(), rootTagTrueName(), setCaseModule(), setCaseServiceInfo(), subDomain(), translatedName(), visit(), xpathFullName(), and ~CaseOptions().