Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
TimeLoopReader.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* TimeLoopReader.h (C) 2000-2006 */
9/* */
10/* Loading a time loop. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MAIN_TIMELOOPREADER_H
13#define ARCANE_MAIN_TIMELOOPREADER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/List.h"
18#include "arcane/utils/String.h"
19#include "arcane/utils/TraceAccessor.h"
20
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26namespace Arcane
27{
28
29/*---------------------------------------------------------------------------*/
30/*---------------------------------------------------------------------------*/
31
32class ITimeLoop;
33class IApplication;
34
35/*---------------------------------------------------------------------------*/
36/*---------------------------------------------------------------------------*/
37
44class ARCANE_IMPL_EXPORT TimeLoopReader
45: public TraceAccessor
46{
47 public:
48
52
53 public:
54
56 void readTimeLoops();
57
60
63
65 const String& timeLoopName() const { return m_time_loop_name; }
66
68 TimeLoopCollection timeLoops() const { return m_time_loops; }
69
70 private:
71
73 TimeLoopList m_time_loops;
74 String m_time_loop_name;
75};
76
77/*---------------------------------------------------------------------------*/
78/*---------------------------------------------------------------------------*/
79
80} // namespace Arcane
81
82/*---------------------------------------------------------------------------*/
83/*---------------------------------------------------------------------------*/
84
85#endif
Declarations of Arcane's general types.
Application interface.
Interface of the subdomain manager.
Definition ISubDomain.h:75
Interface of a time loop.
Definition ITimeLoop.h:33
TimeLoopReader(IApplication *sm)
Creates an instance associated with the manager sm.
void setUsedTimeLoop(ISubDomain *sd)
Positions the used time loop in the manager sd.
TimeLoopCollection timeLoops() const
List of read time loops.
const String & timeLoopName() const
name of the time loop to execute.
void readTimeLoops()
Performs the reading of available time loops.
void registerTimeLoops(ISubDomain *sd)
Registers the list of time loops in the manager sd.
IApplication * m_application
Supervisor.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Collection< ITimeLoop * > TimeLoopCollection
Collection of time loops.
List< ITimeLoop * > TimeLoopList
Array of time loops.