12#ifndef ARCANE_CORE_ICASEMNG_H
13#define ARCANE_CORE_ICASEMNG_H
28class ICaseMngInternal;
130 ARCCORE_DEPRECATED_2019(
"Use removeFunction(ICaseFunction*) instead.")
147 ARCCORE_DEPRECATED_2019(
"Use addFunction(Ref<ICaseFunction>) instead.")
Declarations of Arcane's general types.
#define ARCCORE_DECLARE_REFERENCE_COUNTED_INCLASS_METHODS()
Macro to declare the virtual methods managing reference counters.
virtual void addFunction(ICaseFunction *func)=0
Adds the function func.
virtual IPhysicalUnitSystem * physicalUnitSystem() const =0
Associated unit system.
virtual ~ICaseMng()=default
Frees resources.
virtual ICaseMngInternal * _internalImpl()=0
Internal implementation.
virtual IMeshMng * meshMng() const =0
Associated mesh manager.
virtual ITraceMng * traceMng()=0
Trace manager.
virtual void setTreatWarningAsError(bool v)=0
Sets the way warnings are treated.
virtual bool isTreatWarningAsError() const =0
Indicates whether warnings in the dataset should be treated as errors and cause the code to stop.
virtual void printOptions()=0
Prints the option values.
virtual void removeFunction(ICaseFunction *func, bool dofree)=0
Deletes a function.
virtual void readFunctions()=0
Reads the dataset tables.
virtual ISubDomain * subDomain()=0
Sub-domain manager.
virtual ICaseDocument * readCaseDocument(const String &filename, ByteConstArrayView bytes)=0
Reads the XML document of the dataset.
virtual IApplication * application()=0
Associated application.
virtual IObservable * observable(eCaseMngEventType type)=0
Observable on the instance.
virtual CaseOptionsCollection blocks() const =0
Collection of option blocks.
virtual ICaseDocumentFragment * caseDocumentFragment()=0
Fragment of the XML Document associated with the dataset (can be null if no dataset).
virtual void readOptions(bool is_phase1)=0
Reads the dataset options corresponding to the used modules.
virtual void unregisterOptions(ICaseOptions *)=0
Unregisters a list of dataset options.
virtual CaseFunctionCollection functions()=0
Returns the list of tables.
virtual void setAllowUnkownRootElelement(bool v)=0
Sets the permission for unknown elements at the document root.
virtual void updateOptions(Real current_time, Real current_deltat, Integer current_iteration)=0
Updates the options based on a time-marching table.
virtual bool isAllowUnkownRootElelement() const =0
Indicates whether unknown elements at the document root are allowed.
virtual ICaseDocument * caseDocument()=0
XML document of the dataset (can be null if no dataset).
virtual ICaseFunction * findFunction(const String &name) const =0
Returns the function by name name or nullptr if none exists.
virtual void registerOptions(ICaseOptions *)=0
Registers a list of dataset options.
Interface of an observable.
Interface of the subdomain manager.
Reference to an instance.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
eCaseMngEventType
Types of events supported by ICaseMng.
@ BeginReadOptionsPhase2
Event generated before reading options in phase 2.
@ BeginReadOptionsPhase1
Event generated before reading options in phase 1.
Int32 Integer
Type representing an integer.
Collection< ICaseOptions * > CaseOptionsCollection
Collection of dataset options.
double Real
Type representing a real number.
ConstArrayView< Byte > ByteConstArrayView
C equivalent of a 1D array of characters.