Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
XmlProperty.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/* XmlProperty.h (C) 2000-2002 */
9/* */
10/* Propriétés liée à un noeud XML. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_XMLPROPERTY_H
13#define ARCANE_XMLPROPERTY_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17
18#include "arcane/IProperty.h"
19
20#include "arcane/XmlNode.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25ARCANE_BEGIN_NAMESPACE
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30/*---------------------------------------------------------------------------*/
31/*---------------------------------------------------------------------------*/
36: public IPropertyValue
37{
38 public:
39
40 XmlPropertyValue(const XmlNode& node,IPropertyType* type,
43
44 virtual ~XmlPropertyValue() {}
45
46 public:
47
48 virtual void valueToString(String& str) const;
49 virtual void nameToString(String& str) const;
50 virtual void setValueFromString(const String& str);
51 virtual bool isDefaultValue() const;
52 virtual bool isOriginalValue() const;
53 virtual void originalValueToString(String& str) const;
54 virtual bool canBeEdited() const;
55 virtual IPropertyType* type();
56 virtual IPropertyTypeInstance* typeInstance();
57
58 public:
59
60 XmlNode& node();
61 void setNode(const XmlNode& node);
62 void setType(IPropertyType* type);
63 void setTypeInstance(IPropertyTypeInstance* type_instance);
64
65 private:
66
67 XmlNode m_node;
68 IPropertyType* m_type;
69 IPropertyTypeInstance* m_type_instance;
70};
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
75ARCANE_END_NAMESPACE
76
77/*---------------------------------------------------------------------------*/
78/*---------------------------------------------------------------------------*/
79
80#endif
81
Interface d'une instance d'un type de propriété.
Definition IProperty.h:148
Interface d'un type de propriété.
Definition IProperty.h:105
Interface d'une valeur propriété.
Definition IProperty.h:70
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Noeud d'un arbre DOM.
Definition XmlNode.h:51
Interface d'une valeur propriété.
Definition XmlProperty.h:37
virtual ~XmlPropertyValue()
Libère les ressources.
Definition XmlProperty.h:44
Chaîne de caractères unicode.