Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
utils/IObserver.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* IObserver.h (C) 2000-2021 */
9/* */
10/* Interface d'un observateur. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_IOBSERVER_H
13#define ARCANE_UTILS_IOBSERVER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28class IObservable;
29
30/*---------------------------------------------------------------------------*/
31/*---------------------------------------------------------------------------*/
54class ARCANE_UTILS_EXPORT IObserver
55{
56 protected:
57
58 IObserver() {}
59
60 public:
61
62 virtual ~IObserver() {}
63
64 public:
65
67 virtual void observerUpdate(IObservable*) =0;
68
69 public:
70
73
75 virtual void detach() =0;
76};
77
78/*---------------------------------------------------------------------------*/
79/*---------------------------------------------------------------------------*/
80
81} // End namespace Arcane
82
83/*---------------------------------------------------------------------------*/
84/*---------------------------------------------------------------------------*/
85
86#endif
87
Fichier de configuration d'Arcane.
Interface d'un observable.
Interface d'un observateur.
virtual ~IObserver()
Libère les ressources.
virtual void detach()=0
Se détache de l'observable.
virtual void attachToObservable(IObservable *obs)=0
S'attache à l'observable obs.
virtual void observerUpdate(IObservable *)=0
Notification venant de l'observable oba.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-