Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IPropertyMng.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/* IPropertyMng.h (C) 2000-2025 */
9/* */
10/* Interface of the property manager. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IPROPERTYMNG_H
13#define ARCANE_CORE_IPROPERTYMNG_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28class Properties;
29class PropertiesImpl;
30class IObservable;
31
32/*---------------------------------------------------------------------------*/
33/*---------------------------------------------------------------------------*/
34
39{
40 public:
41
42 virtual ~IPropertyMng() {}
43
44 public:
45
46 virtual ITraceMng* traceMng() const = 0;
47
48 public:
49
57 virtual PropertiesImpl* getPropertiesImpl(const String& full_name) = 0;
58
63 virtual void registerProperties(const Properties& p) = 0;
64
66 virtual void destroyProperties(const Properties& p) = 0;
67
69 virtual void serialize(ISerializer* serializer) = 0;
70
72 virtual void writeTo(ByteArray& bytes) = 0;
73
79 virtual void readFrom(Span<const Byte> bytes) = 0;
80
82 virtual void print(std::ostream& o) const = 0;
83
91
99};
100
101/*---------------------------------------------------------------------------*/
102/*---------------------------------------------------------------------------*/
103
104} // End namespace Arcane
105
106/*---------------------------------------------------------------------------*/
107/*---------------------------------------------------------------------------*/
108
109#endif
Declarations of Arcane's general types.
Interface of the property manager.
virtual ~IPropertyMng()
Frees the resources.
virtual void serialize(ISerializer *serializer)=0
Performs serialization.
virtual void registerProperties(const Properties &p)=0
Registers the properties referenced by p.
virtual void print(std::ostream &o) const =0
Prints the properties and their values to the stream o.
virtual IObservable * writeObservable()=0
Observable for writing.
virtual PropertiesImpl * getPropertiesImpl(const String &full_name)=0
Retrieves the list of properties by full name full_name.
virtual void readFrom(Span< const Byte > bytes)=0
Reads the serialized information contained in bytes.
virtual IObservable * readObservable()=0
Observable for reading.
virtual void destroyProperties(const Properties &p)=0
Deletes the properties referenced by p.
virtual void writeTo(ByteArray &bytes)=0
Serializes property information into bytes.
List of properties.
Definition Properties.h:65
View of an array of elements of type T.
Definition Span.h:635
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Array< Byte > ByteArray
Dynamic one-dimensional array of characters.
Definition UtilsTypes.h:121