Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
IosFile.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/* IosFile.h (C) 2000-2021 */
9/* */
10/* Routines des Lecture/Ecriture d'un fichier. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_STD_FILE_SERVICES_H
13#define ARCANE_STD_FILE_SERVICES_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Iostream.h"
18
19namespace Arcane
20{
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
30{
31 public:
32 static const int IOS_BFR_SZE = 8192;
33 public:
34 IosFile(std::istream* stream) : m_stream(stream) {}
35 const char* getNextLine(const char *);
36 const char* getNextLine(void);
37 Real getReal(void);
38 Integer getInteger(void);
39 Int64 getInt64(void);
40 bool lookForString(const String& str);
41 void checkString(const String& current_value,const String& expected_value);
42 void checkString(const String& current_value, const String& expected_value1, const String& expected_value2);
43 static bool isEqualString(const String& current_value,const String& expected_value);
44 bool isEnd(void);
45 private:
46 std::istream* m_stream;
47 char m_buf[IOS_BFR_SZE];
48};
49
50/*---------------------------------------------------------------------------*/
51/*---------------------------------------------------------------------------*/
52
53}
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58#endif
Routines des Lecture/Ecriture d'un fichier.
Definition IosFile.h:30
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-