12#ifndef ARCANE_CORE_CASEOPTIONSERVICEIMPL_H
13#define ARCANE_CORE_CASEOPTIONSERVICEIMPL_H
17#include "arcane/utils/Functor.h"
19#include "arcane/core/CaseOptions.h"
20#include "arcane/core/CaseOptionsMulti.h"
67class ARCANE_CORE_EXPORT CaseOptionServiceImpl
77 String serviceName()
const {
return m_service_name; }
78 bool isOptional()
const {
return m_is_optional; }
84 void setDefaultValue(
const String& def_value);
85 void addDefaultValue(
const String& category,
const String& value);
95 void setMeshName(
const String& mesh_name) { m_mesh_name = mesh_name; }
96 String meshName()
const {
return m_mesh_name; }
100 virtual void print(
const String& lang, std::ostream& o)
const;
104 String _defaultValue()
const {
return m_default_value; }
115 bool m_is_override_default;
135class ARCANE_CORE_EXPORT CaseOptionMultiServiceImpl
136:
public CaseOptionsMulti
141 ~CaseOptionMultiServiceImpl();
164 void setMeshName(
const String& mesh_name) { m_mesh_name = mesh_name; }
165 String meshName()
const {
return m_mesh_name; }
169 void _setNotifyAllocateFunctor(IFunctor* f)
171 m_notify_functor = f;
176 String _defaultValue()
const {
return m_default_value; }
181 String m_default_value;
183 IFunctor* m_notify_functor;
184 ICaseOptionServiceContainer* m_container;
String serviceName(Integer index) const
Name of the nth service.
UniqueArray< String > m_services_name
Service names for each occurrence.
UniqueArray< ReferenceCounter< ICaseOptions > > m_allocated_options
List of allocated options that must be deleted.
void getAvailableNames(StringArray &names) const
Returns the valid implementation names for this service in names.
void setContainer(ICaseOptionServiceContainer *container)
Positions the instance container.
void read(eCaseOptionReadPhase phase) override
Performs the reading of the read_phase phase of the options.
void visit(ICaseDocumentVisitor *visitor) const override
Applies the visitor to this option.
virtual void getAvailableNames(StringArray &names) const
Returns the valid implementation names for this service in names.
CaseOptions(ICaseMng *cm, const String &name)
Constructs an options set.
Visitor interface for a dataset option.
Interface of a service instance container.
virtual void allocate(Integer size)=0
Allocates an array for size elements.
virtual Integer nbElem() const =0
Returns the number of elements in the array.
Information for creating a service.
Unicode character string.
1D data vector with value semantics (STL style).
List of nodes of a DOM tree.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Array< String > StringArray
Dynamic one-dimensional array of strings.
eCaseOptionReadPhase
Reading phases.
Int32 Integer
Type representing an integer.