Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
BasicTimeLoopService.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/* BasicTimeLoopService.cc (C) 2000-2025 */
9/* */
10/* Base class for a service operating during the time loop. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13#ifndef ARCANE_CORE_BASICTIMELOOPSERVICE_H
14#define ARCANE_CORE_BASICTIMELOOPSERVICE_H
15/*---------------------------------------------------------------------------*/
16/*---------------------------------------------------------------------------*/
17
18#include "arcane/core/ITimeLoopService.h"
19#include "arcane/core/BasicService.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30/*!
31 * \brief Base class for a service operating during the time loop.
32 *
33 * \ingroup StandardService
34 */
35class BasicTimeLoopService
36: public BasicService
37, public ITimeLoopService
38{
39 public:
40
41 explicit BasicTimeLoopService(const ServiceBuildInfo& sbi)
42 : BasicService(sbi)
43 {}
44
45 public:
46
47 void onTimeLoopBeginLoop() override {}
48 void onTimeLoopEndLoop() override {}
49 void onTimeLoopStartInit() override {}
50 void onTimeLoopContinueInit() override {}
51 void onTimeLoopExit() override {}
52 void onTimeLoopMeshChanged() override {}
53 void onTimeLoopRestore() override {}
54};
55
56/*---------------------------------------------------------------------------*/
57/*---------------------------------------------------------------------------*/
58
59} // namespace Arcane
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64#endif
Interface of a service operating during the time loop.
Structure containing the information to create a service.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --