Arcane
v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
TextReader2.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
/* TextReader2.h (C) 2000-2024 */
9
/* */
10
/* Ecrivain de données. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCANE_STD_INTERNAL_TEXTREADER2_H
13
#define ARCANE_STD_INTERNAL_TEXTREADER2_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "
arcane/utils/UtilsTypes.h
"
18
#include "arcane/utils/String.h"
19
20
/*---------------------------------------------------------------------------*/
21
/*---------------------------------------------------------------------------*/
22
23
namespace
Arcane
24
{
25
class
IDataCompressor;
26
}
27
28
namespace
Arcane::impl
29
{
30
31
/*---------------------------------------------------------------------------*/
32
/*---------------------------------------------------------------------------*/
37
class
TextReader2
38
{
39
class
Impl
;
40
41
public
:
42
43
explicit
TextReader2
(
const
String
& filename);
44
TextReader2
(
const
TextReader2
&
rhs
) =
delete
;
45
~TextReader2
();
46
TextReader2
& operator=(
const
TextReader2
&
rhs
) =
delete
;
47
48
public
:
49
50
void
read(
Span<std::byte>
values);
51
void
readIntegers(
Span<Integer>
values);
52
53
public
:
54
55
String
fileName()
const
;
56
void
setFileOffset(Int64 v);
57
void
setDataCompressor(
Ref<IDataCompressor>
ds
);
58
Ref<IDataCompressor>
dataCompressor()
const
;
59
std::istream& stream();
60
Int64 fileLength()
const
;
61
62
private
:
63
64
Impl
* m_p;
65
66
private
:
67
68
void
_binaryRead(
Span<std::byte>
values);
69
void
_checkStream(
const
char
* type, Int64
nb_read_value
);
70
};
71
72
/*---------------------------------------------------------------------------*/
73
/*---------------------------------------------------------------------------*/
74
75
}
// End namespace Arcane::impl
76
77
/*---------------------------------------------------------------------------*/
78
/*---------------------------------------------------------------------------*/
79
80
#endif
UtilsTypes.h
Déclarations des types utilisés dans Arcane.
Arcane::LimaWrapper
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition
Lima.cc:120
Arcane::impl::TextReader2::Impl
Definition
TextReader2.cc:38
Arcane::impl::TextReader2
Classe d'écriture d'un fichier texte pour les protections/reprises.
Definition
TextReader2.h:38
Arccore::String
Chaîne de caractères unicode.
Definition
arccore/src/base/arccore/base/String.h:70
Arcane
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Definition
AcceleratorGlobal.h:36
arcane
std
internal
TextReader2.h
Généré le Lundi 18 Novembre 2024 03:01:42 pour Arcane par
1.9.8