![]() |
PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
|
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 More... | |
PPath | getFileName () const |
renvoie le fichier du PLocation More... | |
size_t | getLine () const |
renvoie la ligne du PLocation More... | |
PLocation & | operator= (const PLocation &other) |
Définition de l'opérateur = de PLocation. More... | |
PLocation (const PLocation &other) | |
Constructeur de copier de PLocation. More... | |
PLocation (const PPath &fileName=PPath(), size_t line=0lu, size_t column=0lu) | |
Constructeur par défaut de PLocation. More... | |
void | setColumn (size_t column) |
fonction qui permet d'initialiser la colonne du PLocation More... | |
void | setFileName (const PPath &fileName) |
fonction qui permet d'initialiser la ligne du PLocation More... | |
void | setLine (size_t line) |
fonction qui permet d'initialiser la ligne du PLocation More... | |
virtual | ~PLocation () |
Destructeur de PLocation. More... | |
Private Member Functions | |
void | copyPLocation (const PLocation &other) |
Fonction de copie de la classe PLocation. More... | |
void | initialisationPLocation (const PPath &fileName, size_t line, size_t column) |
Fonction d'initialisation de la classe PLocation. More... | |
Private Attributes | |
size_t | p_column |
COlonne du fichier vers laquelle le PLocation pointe. More... | |
PPath | p_fileName |
fichier vers lequel le PLocation pointe More... | |
size_t | p_line |
ligne du fichier vers lequel le PLocation pointe More... | |
Friends | |
bool | operator!= (const PLocation &other1, const PLocation &other2) |
Définition de l'opérateur ami != de la classe PLocation. More... | |
std::ostream & | operator<< (std::ostream &out, const PLocation &other) |
Définition de l'opérateur ami << de la classe PLocation. More... | |
bool | operator== (const PLocation &other1, const PLocation &other2) |
Définition de l'opérateur ami == de la classe PLocation. More... | |
Classe qui permet de décrire une localisation, avec un nom de fichier et une ligne.
Definition at line 15 of file PLocation.h.
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().
PLocation::PLocation | ( | const PLocation & | other | ) |
Constructeur de copier de PLocation.
other | : PLocation à copier |
Definition at line 29 of file PLocation.cpp.
References copyPLocation().
|
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, and p_line.
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 checkPLocation(), and PFileParser::setLocation().
PPath PLocation::getFileName | ( | ) | const |
renvoie le fichier du PLocation
Definition at line 60 of file PLocation.cpp.
References p_fileName.
Referenced by checkPLocation(), and 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 checkPLocation(), and 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().
void PLocation::setColumn | ( | size_t | column | ) |
fonction qui permet d'initialiser la colonne du PLocation
column | : colonne du PLocation |
Definition at line 55 of file PLocation.cpp.
References p_column.
Referenced by checkPLocation().
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.
Referenced by checkPLocation().
void PLocation::setLine | ( | size_t | line | ) |
fonction qui permet d'initialiser la ligne du PLocation
line | : ligne du PLocation |
Definition at line 48 of file PLocation.cpp.
References p_line.
Referenced by checkPLocation().
Définition de l'opérateur ami != de la classe PLocation.
Definition at line 115 of file PLocation.cpp.
|
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.
Définition de l'opérateur ami == de la classe PLocation.
Definition at line 106 of file PLocation.cpp.
|
private |
COlonne du fichier vers laquelle le PLocation pointe.
Definition at line 44 of file PLocation.h.
Referenced by copyPLocation(), getColumn(), initialisationPLocation(), and setColumn().
|
private |
fichier vers lequel le PLocation pointe
Definition at line 40 of file PLocation.h.
Referenced by copyPLocation(), getFileName(), initialisationPLocation(), and setFileName().
|
private |
ligne du fichier vers lequel le PLocation pointe
Definition at line 42 of file PLocation.h.
Referenced by copyPLocation(), getLine(), initialisationPLocation(), and setLine().