Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
NullXmlDocumentHolder.cc
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/* NullXmlDocumentHolder.cc (C) 2000-2010 */
9/* */
10/* Gestionnaire d'un document DOM null. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/ArcanePrecomp.h"
15
16#include "arcane/utils/Array.h"
17
18#include "arcane/IXmlDocumentHolder.h"
19#include "arcane/XmlNode.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24ARCANE_BEGIN_NAMESPACE
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29/*---------------------------------------------------------------------------*/
30/*---------------------------------------------------------------------------*/
31
33: public IXmlDocumentHolder
34{
35 public:
36 virtual XmlNode documentNode() { return XmlNode(); }
37 virtual IXmlDocumentHolder* clone() { return new NullXmlDocumentHolder(); }
38 virtual void save(ByteArray& bytes) { bytes.clear(); }
39 virtual String save() { return String(); }
40};
41
42/*---------------------------------------------------------------------------*/
43/*---------------------------------------------------------------------------*/
44
45IXmlDocumentHolder* IXmlDocumentHolder::
46createNull()
47{
48 return new NullXmlDocumentHolder();
49}
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
53
54ARCANE_END_NAMESPACE
55
56/*---------------------------------------------------------------------------*/
57/*---------------------------------------------------------------------------*/
58
Tableau d'items de types quelconques.
Gestionnaire d'un document DOM.
virtual XmlNode documentNode()
Noeud document. Ce noeud est nul si le document n'existe pas.
virtual void save(ByteArray &bytes)
Sauvegarde ce document dans le tableau bytes.
virtual String save()
Sauvegarde ce document et retourne la chaîne de caractères.
virtual IXmlDocumentHolder * clone()
Clone ce document.
Noeud d'un arbre DOM.
Definition XmlNode.h:51
Chaîne de caractères unicode.