Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
VariableStatusChangedEventArgs.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/* VariableStatusChangedEventArgs.h (C) 2000-2017 */
9/* */
10/* Arguments des évènements générés par IVariableMng. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13#ifndef ARCANE_VARIABLESTATUSCHANGEDEVENTARGS_H
14#define ARCANE_VARIABLESTATUSCHANGEDEVENTARGS_H
15/*---------------------------------------------------------------------------*/
16/*---------------------------------------------------------------------------*/
17
19#include "arcane/utils/Array.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24ARCANE_BEGIN_NAMESPACE
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29class IVariable;
30
31/*---------------------------------------------------------------------------*/
32/*---------------------------------------------------------------------------*/
37class ARCANE_CORE_EXPORT VariableStatusChangedEventArgs
38{
39 public:
40 enum class Status
41 {
43 Added,
45 Removed
46 };
47 public:
49 : m_variable(var), m_status(s){}
50 VariableStatusChangedEventArgs(const VariableStatusChangedEventArgs& rhs) = default;
51 ~VariableStatusChangedEventArgs(){}
52 VariableStatusChangedEventArgs& operator=(const VariableStatusChangedEventArgs& rhs) = default;
53 public:
55 IVariable* variable() const { return m_variable; }
57 Status status() const { return m_status; }
58 private:
59 IVariable* m_variable;
60 Status m_status;
61};
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
65
66ARCANE_END_NAMESPACE
67
68/*---------------------------------------------------------------------------*/
69/*---------------------------------------------------------------------------*/
70
71#endif
Déclarations des types utilisés dans Arcane.
Interface d'une variable.
Definition IVariable.h:54
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Arguments de l'évènement notifiant un changement de l'état d'une variable.
IVariable * variable() const
Variable dont l'état change.