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
18
#include "
arcane/utils/UtilsTypes.h
"
19
#include "arcane/utils/Array.h"
20
21
/*---------------------------------------------------------------------------*/
22
/*---------------------------------------------------------------------------*/
23
24
ARCANE_BEGIN_NAMESPACE
25
26
/*---------------------------------------------------------------------------*/
27
/*---------------------------------------------------------------------------*/
28
29
class
IVariable;
30
31
/*---------------------------------------------------------------------------*/
32
/*---------------------------------------------------------------------------*/
37
class
ARCANE_CORE_EXPORT
VariableStatusChangedEventArgs
38
{
39
public
:
40
enum class
Status
41
{
43
Added,
45
Removed
46
};
47
public
:
48
VariableStatusChangedEventArgs
(
IVariable
*
var
,Status s)
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
66
ARCANE_END_NAMESPACE
67
68
/*---------------------------------------------------------------------------*/
69
/*---------------------------------------------------------------------------*/
70
71
#endif
UtilsTypes.h
Déclarations des types utilisés dans Arcane.
Arcane::IVariable
Interface d'une variable.
Definition
IVariable.h:54
Arcane::LimaWrapper
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition
Lima.cc:120
Arcane::VariableStatusChangedEventArgs
Arguments de l'évènement notifiant un changement de l'état d'une variable.
Definition
VariableStatusChangedEventArgs.h:38
Arcane::VariableStatusChangedEventArgs::Status
Status
Definition
VariableStatusChangedEventArgs.h:41
Arcane::VariableStatusChangedEventArgs::variable
IVariable * variable() const
Variable dont l'état change.
Definition
VariableStatusChangedEventArgs.h:55
Arcane::VariableStatusChangedEventArgs::status
Status status() const
Etat.
Definition
VariableStatusChangedEventArgs.h:57
arcane
core
VariableStatusChangedEventArgs.h
Généré le Lundi 18 Novembre 2024 03:01:11 pour Arcane par
1.9.8