-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogRead.h
66 lines (50 loc) · 2.11 KB
/
LogRead.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*************************************************************************
LogRead - description
-------------------
début : 15 janvier 2019
copyright : (C) 2019 par Ludovic Richoux
e-mail : [email protected]
*************************************************************************/
//---------- Interface de la classe <Xxx> (fichier LogRead.h) ----------------
#if ! defined ( LOGREAD_H )
#define LOGREAD_H
//--------------------------------------------------- Interfaces utilisées
#include <cstring>
#include <fstream>
//------------------------------------------------------------- Constantes
//------------------------------------------------------------------ Types
//------------------------------------------------------------------------
// Rôle de la classe <LogRead>
// La classe LogRead permet l'ouverture d'un fichier .log et permet de
// récupérer une ligne particulière de celui ci.
//------------------------------------------------------------------------
class LogRead
{
//----------------------------------------------------------------- PUBLIC
public:
//----------------------------------------------------- Méthodes publiques
string getLine();
// Mode d'emploi :
// retourne la nbLigne ième ligne du fichier nomfic, et une string vide
// si on atteint la fin du fichier
// Contrat :
//
//-------------------------------------------- Constructeurs - destructeur
LogRead (string nomFic );
// Mode d'emploi :
// créer un logRead
// Contrat :
// Aucun
virtual ~LogRead ( );
// Mode d'emploi :
// détruit le LogRead courant
// Contrat :
// aucun
//------------------------------------------------------------------ PRIVE
protected:
//----------------------------------------------------- Méthodes protégées
//----------------------------------------------------- Attributs protégés
ifstream log;
};
//-------------------------------- Autres définitions dépendantes de <Xxx>
#endif // LOGREAD_H