Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
MeshEvents.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/* MeshEvents.h (C) 2000-2023 */
9/* */
10/* Events on a mesh. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_MESHEVENTS_H
13#define ARCANE_CORE_MESHEVENTS_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
36
37/*---------------------------------------------------------------------------*/
38/*---------------------------------------------------------------------------*/
39
43class ARCANE_CORE_EXPORT MeshEventArgs
44{
45 public:
46
47 MeshEventArgs(IMesh* mesh, eMeshEventType type)
48 : m_mesh(mesh)
49 , m_type(type)
50 {}
51
52 public:
53
54 IMesh* mesh() const { return m_mesh; }
55 eMeshEventType type() const { return m_type; }
56
57 private:
58
59 IMesh* m_mesh = nullptr;
60 eMeshEventType m_type;
61};
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
65
66} // namespace Arcane
67
68/*---------------------------------------------------------------------------*/
69/*---------------------------------------------------------------------------*/
70
71#endif
Declarations of Arcane's general types.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
eMeshEventType
Events generated by IMesh.
Definition MeshEvents.h:30
@ EndPrepareDump
Event sent at the end of prepareForDump().
Definition MeshEvents.h:34
@ BeginPrepareDump
Event sent at the beginning of prepareForDump().
Definition MeshEvents.h:32