Arcane
v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
FileContent.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
/* FileContent.h (C) 2000-2019 */
9
/* */
10
/* Contenu d'un fichier. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCANE_UTILS_FILECONTENT_H
13
#define ARCANE_UTILS_FILECONTENT_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "arcane/utils/Array.h"
18
#include "arcane/utils/String.h"
19
20
/*---------------------------------------------------------------------------*/
21
/*---------------------------------------------------------------------------*/
22
23
namespace
Arcane
24
{
25
26
/*---------------------------------------------------------------------------*/
27
/*---------------------------------------------------------------------------*/
31
class
ARCANE_UTILS_EXPORT
FileContent
32
{
33
public
:
34
static
const
Int32 CURRENT_VERSION = 1;
35
public
:
36
38
FileContent
() : m_version(CURRENT_VERSION) {}
39
FileContent
(
Span<const Byte>
abytes
,Int32 version,
const
String
& compression)
40
: m_bytes(
abytes
), m_version(version), m_compression(compression){}
41
42
public
:
43
45
Span<const Byte> bytes()
const
;
47
Int32
version
()
const
{
return
m_version; }
49
const
String
&
compression
()
const
{
return
m_compression; }
50
51
private
:
52
53
UniqueArray<Byte>
m_bytes;
54
Int32 m_version;
55
String
m_compression;
56
};
57
58
/*---------------------------------------------------------------------------*/
59
/*---------------------------------------------------------------------------*/
60
61
}
// End namespace Arcane
62
63
/*---------------------------------------------------------------------------*/
64
/*---------------------------------------------------------------------------*/
65
66
#endif
67
Arcane::FileContent
Description et contenu d'un fichier.
Definition
FileContent.h:32
Arcane::FileContent::compression
const String & compression() const
Algorithme de compression utilisé.
Definition
FileContent.h:49
Arcane::FileContent::version
Int32 version() const
Version du contenu.
Definition
FileContent.h:47
Arcane::FileContent::FileContent
FileContent()
Créé un contenu vide.
Definition
FileContent.h:38
Arcane::LimaWrapper
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition
Lima.cc:120
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
utils
FileContent.h
Généré le Lundi 18 Novembre 2024 03:01:59 pour Arcane par
1.9.8