Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
IUserData.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/* IUserData.h (C) 2000-2012 */
9/* */
10/* Interface for user data attached to another object. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_IUSERDATA_H
13#define ARCANE_UTILS_IUSERDATA_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*!
29 * \brief Interface for user data attached to another object.
30 * \ingroup Core
31 */
32class ARCANE_UTILS_EXPORT IUserData
33{
34 public:
35
36 //! Releases resources
37 virtual ~IUserData() {}
38
39 public:
40
41 //! Method executed when the instance is attached.
42 virtual void notifyAttach() = 0;
43
44 //! Method executed when the instance is detached.
45 virtual void notifyDetach() = 0;
46};
47
48/*---------------------------------------------------------------------------*/
49/*---------------------------------------------------------------------------*/
50
51} // namespace Arcane
52
53/*---------------------------------------------------------------------------*/
54/*---------------------------------------------------------------------------*/
55
56#endif
Arcane configuration file.
Interface for user data attached to another object.
Definition IUserData.h:33
virtual void notifyAttach()=0
Method executed when the instance is attached.
virtual ~IUserData()
Releases resources.
Definition IUserData.h:37
virtual void notifyDetach()=0
Method executed when the instance is detached.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --