#include <Langage.h>
Fonctions membres publiques | |
Langage (char *pFile=NULL) | |
~Langage () | |
void | SetLangue (char *pLangue) |
Langue du fichier. | |
char * | GetLangue () |
Retourne la langue. | |
Attributs publics statiques | |
Ini * | Lines = NULL |
Définition à la ligne 21 du fichier Langage.h.
|
Initalisé par defaut en langage "FR".
Définition à la ligne 16 du fichier Langage.cpp. Références IniItem::GetData(), IniSection::GetItem(), Ini::GetSection(), et SetLangue(). 00017 { 00018 if(!Langue) 00019 Langue = new char[LANGUE_LANGUE]; 00020 00021 if(pFile) 00022 { 00023 Ini FichierConf(pFile); 00024 00025 strcpy(Langue, FichierConf.GetSection("langage")->GetItem("langue")->GetData()); 00026 } 00027 00028 if(!Langue) 00029 strcpy(Langue, "Langage.FR"); 00030 00031 SetLangue(Langue); 00032 }
|
|
Libére la mémoire proprement. Définition à la ligne 34 du fichier Langage.cpp. 00035 {
00036 delete [] Langue;
00037 }
|
|
Retourne un pointeur sur la langue Langue.
Définition à la ligne 50 du fichier Langage.h. 00051 {
00052 return Langue;
00053 };
|
|
Permet de définir la langue du fichier à charger.
Définition à la ligne 39 du fichier Langage.cpp. Références Lines. Référencé par Langage(). 00040 { 00041 Lines = new Ini(pLangue); 00042 00043 if(!Lines) 00044 perror("canot open Langage file\n"); 00045 }
|
|
Nom du fichier charger ("Langage.FR" par defaut). Définition à la ligne 13 du fichier Langage.cpp. Référencé par SetLangue(). |