TraceX
 
Loading...
Searching...
No Matches
File Class Reference

#include <file.h>

Inheritance diagram for File:

Public Member Functions

 File ()
 File::File Constructeur qui construit un objet File sans path.
 
 File (std::string path)
 File::File Constructeur qui construit un objet de type File à partir de son chemin d'accès.
 
std::string getPath () const
 File::getPath.
 
bool existFile () const
 File::existFile vérifie si un fichier existe dans le pc de l'utilisateur.
 
QString getNom () const
 File::getNom.
 
bool isWord ()
 File::isWord vérifie si un fichier est un fichier word à partir de son extension.
 
bool isExcel ()
 File::isExcel vérifie si un fichier est un fichier excel à partir de son extension.
 
bool isCsv ()
 File::isCsv vérifie si un fichier est un fichier csv à partir de son extension.
 
virtual void debug () const
 

Static Public Member Functions

static QString getRadical ()
 
static void setRadical (QString radical)
 Définit le radical associé au fichier.
 

Constructor & Destructor Documentation

◆ File() [1/2]

File::File ( )

File::File Constructeur qui construit un objet File sans path.

Author
malek
Here is the caller graph for this function:

◆ File() [2/2]

File::File ( std::string path)

File::File Constructeur qui construit un objet de type File à partir de son chemin d'accès.

Parameters
path: chemin d'accès du fichier
Author
malek

Member Function Documentation

◆ debug()

virtual void File::debug ( ) const
inlinevirtual

◆ existFile()

bool File::existFile ( ) const

File::existFile vérifie si un fichier existe dans le pc de l'utilisateur.

Returns
vrai si un fichier existe dans le pc de l'utilisateur, faux sinon
Author
malek

◆ getNom()

QString File::getNom ( ) const

File::getNom.

Returns
le nom du fichier
Author
malek
Here is the caller graph for this function:

◆ getPath()

std::string File::getPath ( ) const

File::getPath.

Returns
la valeur de l'attribut path (le chemin d'accès du fichier)
Author
malek
Here is the caller graph for this function:

◆ getRadical()

QString File::getRadical ( )
static
Here is the caller graph for this function:

◆ isCsv()

bool File::isCsv ( )

File::isCsv vérifie si un fichier est un fichier csv à partir de son extension.

Returns
vrai si le fichier est un fichier csv, faux sinon
Author
malek
Here is the caller graph for this function:

◆ isExcel()

bool File::isExcel ( )

File::isExcel vérifie si un fichier est un fichier excel à partir de son extension.

Returns
vrai si le fichier est un fichier excel, faux sinon
Author
malek
Here is the caller graph for this function:

◆ isWord()

bool File::isWord ( )

File::isWord vérifie si un fichier est un fichier word à partir de son extension.

Returns
vrai si le fichier est un fichier word, faux sinon
Author
malek
Here is the caller graph for this function:

◆ setRadical()

void File::setRadical ( QString radical)
static

Définit le radical associé au fichier.

Cette méthode permet d'assigner un radical (identifiant de base) à un fichier. Le radical est stocké dans l'attribut "radical" de la classe "File".

Parameters
radicalLe radical à associer au fichier.
Returns
void
Author
Malek

The documentation for this class was generated from the following files: