![]() |
PhoenixFileParser
1.0.0
Set of tools to ease file parsing
|
Classe qui permet de décrire une localisation, avec un nom de fichier et une ligne. More...
#include <PLocation.h>
Public Member Functions | |
size_t | getColumn () const |
renvoie la colonne du PLocation | |
PPath | getFileName () const |
renvoie le fichier du PLocation | |
size_t | getLine () const |
renvoie la ligne du PLocation | |
PLocation & | operator= (const PLocation &other) |
Définition de l'opérateur = de PLocation. | |
PLocation (const PLocation &other) | |
Constructeur de copier de PLocation. | |
PLocation (const PPath &fileName=PPath(), size_t line=0lu, size_t column=0lu) | |
Constructeur par défaut de PLocation. | |
void | setColumn (size_t column) |
fonction qui permet d'initialiser la colonne du PLocation | |
void | setFileName (const PPath &fileName) |
fonction qui permet d'initialiser la ligne du PLocation | |
void | setLine (size_t line) |
fonction qui permet d'initialiser la ligne du PLocation | |
virtual | ~PLocation () |
Destructeur de PLocation. | |
Private Member Functions | |
void | copyPLocation (const PLocation &other) |
Fonction de copie de la classe PLocation. | |
void | initialisationPLocation (const PPath &fileName, size_t line, size_t column) |
Fonction d'initialisation de la classe PLocation. | |
Private Attributes | |
size_t | p_column |
COlonne du fichier vers laquelle le PLocation pointe. | |
PPath | p_fileName |
fichier vers lequel le PLocation pointe | |
size_t | p_line |
ligne du fichier vers lequel le PLocation pointe | |
Friends | |
bool | operator!= (const PLocation &other1, const PLocation &other2) |
Définition de l'opérateur ami != de la classe PLocation. | |
std::ostream & | operator<< (std::ostream &out, const PLocation &other) |
Définition de l'opérateur ami << de la classe PLocation. | |
bool | operator== (const PLocation &other1, const PLocation &other2) |
Définition de l'opérateur ami == de la classe PLocation. | |
Classe qui permet de décrire une localisation, avec un nom de fichier et une ligne.
Definition at line 15 of file PLocation.h.
PLocation::PLocation | ( | const PPath & | fileName = PPath(), |
size_t | line = 0lu, | ||
size_t | column = 0lu ) |
Constructeur par défaut de PLocation.
fileName | : fichier vers lequel le PLocation pointe |
line | : ligne du fichier vers lequel le PLocation pointe |
column | : colonne du fichier vers lequel le PLocation pointe |
Definition at line 22 of file PLocation.cpp.
References initialisationPLocation().
Referenced by copyPLocation(), operator!=, operator<<, operator=(), operator==, and PLocation().
PLocation::PLocation | ( | const PLocation & | other | ) |
Constructeur de copier de PLocation.
other | : PLocation à copier |
Definition at line 29 of file PLocation.cpp.
References copyPLocation(), and PLocation().
|
virtual |
|
private |
Fonction de copie de la classe PLocation.
other | : PLocation à copier |
Definition at line 150 of file PLocation.cpp.
References p_column, p_fileName, p_line, and PLocation().
Referenced by operator=(), and PLocation().
size_t PLocation::getColumn | ( | ) | const |
renvoie la colonne du PLocation
Definition at line 74 of file PLocation.cpp.
References p_column.
Referenced by PFileParser::setLocation().
PPath PLocation::getFileName | ( | ) | const |
renvoie le fichier du PLocation
Definition at line 60 of file PLocation.cpp.
References p_fileName.
Referenced by PFileParser::setLocation().
size_t PLocation::getLine | ( | ) | const |
renvoie la ligne du PLocation
Definition at line 67 of file PLocation.cpp.
References p_line.
Referenced by PFileParser::setLocation().
|
private |
Fonction d'initialisation de la classe PLocation.
fileName | : fichier vers lequel le PLocation pointe |
line | : ligne du fichier vers lequel le PLocation pointe |
column | : colonne du fichier vers lequel le PLocation pointe |
Definition at line 141 of file PLocation.cpp.
References p_column, p_fileName, and p_line.
Referenced by PLocation().
Définition de l'opérateur = de PLocation.
other | : PLocation à copier |
Definition at line 89 of file PLocation.cpp.
References copyPLocation(), and PLocation().
void PLocation::setColumn | ( | size_t | column | ) |
void PLocation::setFileName | ( | const PPath & | fileName | ) |
fonction qui permet d'initialiser la ligne du PLocation
fileName | : fichier du PLocation |
Definition at line 41 of file PLocation.cpp.
References p_fileName.
void PLocation::setLine | ( | size_t | line | ) |
Définition de l'opérateur ami != de la classe PLocation.
Definition at line 115 of file PLocation.cpp.
References p_fileName, p_line, and PLocation().
|
friend |
Définition de l'opérateur ami << de la classe PLocation.
out | : sortie standart de la console (cout) |
other | : PLocation à affiche dans la console |
Definition at line 124 of file PLocation.cpp.
References p_column, p_fileName, p_line, and PLocation().
Définition de l'opérateur ami == de la classe PLocation.
Definition at line 106 of file PLocation.cpp.
References p_fileName, p_line, and PLocation().
|
private |
COlonne du fichier vers laquelle le PLocation pointe.
Definition at line 44 of file PLocation.h.
Referenced by copyPLocation(), getColumn(), initialisationPLocation(), operator<<, and setColumn().
|
private |
fichier vers lequel le PLocation pointe
Definition at line 40 of file PLocation.h.
Referenced by copyPLocation(), getFileName(), initialisationPLocation(), operator!=, operator<<, operator==, and setFileName().
|
private |
ligne du fichier vers lequel le PLocation pointe
Definition at line 42 of file PLocation.h.
Referenced by copyPLocation(), getLine(), initialisationPLocation(), operator!=, operator<<, operator==, and setLine().