Time loop loading functor. More...
#include <arcane/impl/TimeLoopReader.h>
Public Member Functions | |
| TimeLoopReader (IApplication *sm) | |
| Creates an instance associated with the manager sm. | |
| ~TimeLoopReader () | |
| Frees resources. | |
| void | readTimeLoops () |
| Performs the reading of available time loops. | |
| void | registerTimeLoops (ISubDomain *sd) |
| Registers the list of time loops in the manager sd. | |
| void | setUsedTimeLoop (ISubDomain *sd) |
| Positions the used time loop in the manager sd. | |
| const String & | timeLoopName () const |
| name of the time loop to execute. | |
| TimeLoopCollection | timeLoops () const |
| List of read time loops. | |
| Public Member Functions inherited from Arcane::TraceAccessor | |
| TraceAccessor (ITraceMng *m) | |
| Constructs an accessor via the trace manager m. | |
| TraceAccessor (const TraceAccessor &rhs) | |
| Copy constructor. | |
| TraceAccessor & | operator= (const TraceAccessor &rhs) |
| Copy assignment operator. | |
| virtual | ~TraceAccessor () |
| Frees resources. | |
| ITraceMng * | traceMng () const |
| Trace manager. | |
| TraceMessage | info () const |
| Flow for an information message. | |
| TraceMessage | pinfo () const |
| Flow for a parallel information message. | |
| TraceMessage | info (char category) const |
| Flow for an information message of a given category. | |
| TraceMessage | pinfo (char category) const |
| Flow for a parallel information message of a given category. | |
| TraceMessage | info (bool v) const |
| Flow for an information message. | |
| TraceMessage | warning () const |
| Flow for a warning message. | |
| TraceMessage | pwarning () const |
| TraceMessage | error () const |
| Flow for an error message. | |
| TraceMessage | perror () const |
| TraceMessage | log () const |
| Flow for a log message. | |
| TraceMessage | plog () const |
| Flow for a log message. | |
| TraceMessage | logdate () const |
| Flow for a log message preceded by the date. | |
| TraceMessage | fatal () const |
| Flow for a fatal error message. | |
| TraceMessage | pfatal () const |
| Flow for a parallel fatal error message. | |
| TraceMessageDbg | debug (Trace::eDebugLevel=Trace::Medium) const |
| Flow for a debug message. | |
| Trace::eDebugLevel | configDbgLevel () const |
| Debug level of the configuration file. | |
| TraceMessage | info (Int32 verbose_level) const |
| Flow for an information message of a given level. | |
| TraceMessage | linfo () const |
| Flow for an information message with the local information level of this instance. | |
| TraceMessage | linfo (Int32 relative_level) const |
| Flow for an information message with the local information level of this instance. | |
| void | fatalMessage (const StandaloneTraceMessage &o) const |
Private Attributes | |
| IApplication * | m_application |
| Supervisor. | |
| TimeLoopList | m_time_loops |
| String | m_time_loop_name |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Time loop loading functor.
Based on the dataset and general options, it reads the name of the time loop and indicates it to the manager #m_mng.
Definition at line 44 of file TimeLoopReader.h.
| Arcane::TimeLoopReader::TimeLoopReader | ( | IApplication * | sm | ) |
Creates an instance associated with the manager sm.
Definition at line 50 of file TimeLoopReader.cc.
References m_application, Arcane::TraceAccessor::TraceAccessor(), and Arcane::TraceAccessor::traceMng().
| Arcane::TimeLoopReader::~TimeLoopReader | ( | ) |
Frees resources.
Definition at line 60 of file TimeLoopReader.cc.
| void Arcane::TimeLoopReader::readTimeLoops | ( | ) |
Performs the reading of available time loops.
Definition at line 103 of file TimeLoopReader.cc.
References Arcane::ConfigurationReader::addValuesFromXmlNode(), ARCANE_FATAL, Arcane::XmlNode::attrValue(), Arcane::XmlNode::child(), Arcane::XmlNode::children(), Arcane::CollectionBase::clear(), Arcane::List< T >::clone(), Arcane::ITimeLoop::configuration(), Arcane::IMainFactory::createTimeLoop(), Arcane::PtrT< T >::get(), Arcane::TraceAccessor::info(), m_application, Arcane::XmlNode::name(), Arcane::String::null(), Arcane::ITimeLoop::setDescription(), Arcane::ITimeLoop::setEntryPoints(), Arcane::ITimeLoop::setOptionalModulesName(), Arcane::ITimeLoop::setRequiredModulesName(), Arcane::ITimeLoop::setSingletonServices(), Arcane::ITimeLoop::setTitle(), Arcane::ITimeLoop::setUserClasses(), Arcane::TraceAccessor::traceMng(), Arcane::ITimeLoop::WBuild, Arcane::ITimeLoop::WComputeLoop, Arcane::ITimeLoop::WExit, Arcane::ITimeLoop::WInit, Arcane::ITimeLoop::WOnMeshChanged, Arcane::ITimeLoop::WOnMeshRefinement, and Arcane::ITimeLoop::WRestore.
Referenced by Arcane::InternalInfosDumper::dumpArcaneDatabase(), Arcane::InternalInfosDumper::dumpInternalAllInfos(), and Arcane::ArcaneCodeService::initCase().
| void Arcane::TimeLoopReader::registerTimeLoops | ( | ISubDomain * | sd | ) |
Registers the list of time loops in the manager sd.
Definition at line 233 of file TimeLoopReader.cc.
References Arcane::ITimeLoopMng::registerTimeLoop(), and Arcane::ISubDomain::timeLoopMng().
Referenced by Arcane::InternalInfosDumper::dumpArcaneDatabase(), and Arcane::ArcaneCodeService::initCase().
| void Arcane::TimeLoopReader::setUsedTimeLoop | ( | ISubDomain * | sd | ) |
Positions the used time loop in the manager sd.
Definition at line 68 of file TimeLoopReader.cc.
References ARCANE_FATAL, Arcane::ISubDomain::caseDocument(), Arcane::TraceAccessor::error(), Arcane::TraceAccessor::info(), Arcane::XmlNode::null(), Arcane::ITimeLoopMng::setUsedTimeLoop(), Arcane::ICaseDocument::timeloopElement(), Arcane::ISubDomain::timeLoopMng(), and Arcane::XmlNode::value().
Referenced by Arcane::ArcaneCodeService::initCase().
|
inline |
name of the time loop to execute.
Definition at line 65 of file TimeLoopReader.h.
|
inline |
List of read time loops.
Definition at line 68 of file TimeLoopReader.h.
Referenced by Arcane::InternalInfosDumper::dumpArcaneDatabase(), and Arcane::InternalInfosDumper::dumpInternalAllInfos().
|
private |
Supervisor.
Definition at line 72 of file TimeLoopReader.h.
Referenced by readTimeLoops(), and TimeLoopReader().
|
private |
Definition at line 74 of file TimeLoopReader.h.
|
private |
Definition at line 73 of file TimeLoopReader.h.