Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
TextWriter2.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2024 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/* TextWriter2.h (C) 2000-2024 */
9/* */
10/* Ecrivain de données. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_STD_INTERNAL_TEXTWRITER2_H
13#define ARCANE_STD_INTERNAL_TEXTWRITER2_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18#include "arcane/utils/String.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25class IDataCompressor;
26}
27
28namespace Arcane::impl
29{
30
31/*---------------------------------------------------------------------------*/
32/*---------------------------------------------------------------------------*/
38{
39 class Impl;
40
41 public:
42
43 explicit TextWriter2(const String& filename);
44 TextWriter2(const TextWriter2& rhs) = delete;
46 TextWriter2& operator=(const TextWriter2& rhs) = delete;
47
48 public:
49
50 void write(Span<const std::byte> values);
51
52 public:
53
54 String fileName() const;
55 void setDataCompressor(Ref<IDataCompressor> ds);
56 Ref<IDataCompressor> dataCompressor() const;
57 Int64 fileOffset();
58 std::ostream& stream();
59
60 private:
61
62 Impl* m_p;
63
64 private:
65
66 void _open(const String& filename);
67 void _binaryWrite(Span<const std::byte> values);
68};
69
70/*---------------------------------------------------------------------------*/
71/*---------------------------------------------------------------------------*/
72
73} // End namespace Arcane::impl
74
75/*---------------------------------------------------------------------------*/
76/*---------------------------------------------------------------------------*/
77
78#endif
Déclarations des types utilisés dans Arcane.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Classe d'écriture d'un fichier texte pour les protections/reprises.
Definition TextWriter2.h:38
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-