Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
TimeLoopSingletonServiceInfo.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/* TimeLoopSingletonServiceInfo.h (C) 2000-2022 */
9/* */
10/* Info of a time loop singleton service. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_TIMELOOPSINGLETONSERVICEINFO_H
13#define ARCANE_TIMELOOPSINGLETONSERVICEINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/String.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
32class TimeLoopSingletonServiceInfo
33{
34 public:
35
36 TimeLoopSingletonServiceInfo()
37 : m_is_required(false)
38 {}
39 TimeLoopSingletonServiceInfo(const String& name, bool is_required)
40 : m_name(name)
41 , m_is_required(is_required)
42 {}
43
44 public:
45
46 const String& name() const { return m_name; }
47 bool isRequired() const { return m_is_required; }
48 bool operator==(const TimeLoopSingletonServiceInfo& rhs) const
49 {
50 if (m_name != rhs.m_name)
51 return false;
52 return m_is_required != rhs.m_is_required;
53 }
54
55 private:
56
57 String m_name;
58 bool m_is_required;
59};
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64} // End namespace Arcane
65
66/*---------------------------------------------------------------------------*/
67/*---------------------------------------------------------------------------*/
68
69#endif
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --