ZenLib

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

ZtringListListF.h
Go to the documentation of this file.
1 /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
2 *
3 * Use of this source code is governed by a zlib-style license that can
4 * be found in the License.txt file in the root of the source tree.
5 */
6
7 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8 //
9 // ZtringListList with file load/save
10 //
11 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12
13 //---------------------------------------------------------------------------
14 #ifndef ZtringListListFH
15 #define ZtringListListFH
16 //---------------------------------------------------------------------------
17
18 //---------------------------------------------------------------------------
19 #include "ZenLib/ZtringListList.h"
20 //---------------------------------------------------------------------------
21
22 namespace ZenLib
23 {
24
25 //***************************************************************************
26 /// @brief ZtringListList with file management
27 //***************************************************************************
28
29 class ZtringListListF : public ZtringListList
30 {
31 public :
32 //Constructors/Destructor
33 ZtringListListF ();
34 ZtringListListF (const ZtringListList &Source);
35 ZtringListListF (const Ztring &Source);
36 ZtringListListF (const Char *Source);
37 #ifdef _UNICODE
38 ZtringListListF (const char *Source); //convert a UTF-8 string into Unicode
39 #endif
40
41 //File management
42 bool Load (const Ztring &FileName=Ztring());
43 bool Save (const Ztring &FileName=Ztring());
44 bool Cancel ();
45
46 //Configuration
47 // @brief enable or disable backup creation
48 void Backup_Set (bool Save);
49 // @brief Set the count of versions to save
50 void Backup_Count_Set (int8u Count);
51 // @brief Set if the content of file is a localized (=not UTF8) file
52 void Local_Set (bool Local);
53
54 protected :
55 Ztring Name; //Nom du fichier
56 bool Sauvegarde; //Indicateur si on a le droit de sauvegarder (par defaut)
57 int8u Backup_Nb_Max; //Nombre maxi de sauvegardes
58 int8u Backup_Nb; //Nombre actuel de backups pour cette session
59 bool Local; //if true, this is a local charset, else this is a UTF8 charset
60
61 //File management
62 bool CSV_Charger ();
63 bool CFG_Charger ();
64 bool CSV_Sauvegarder ();
65 bool CFG_Sauvegarder ();
66 bool File_Load ();
67
68 //Divers
69 bool NettoyerEspaces (Ztring &ANettoyer); //Enlever les espaces avant et apres
70
71 private:
72 void ZtringListListF_Common();
73 };
74
75 } //Namespace
76
77 #endif
ZenLib::ZtringListListF::CFG_Sauvegarder
bool CFG_Sauvegarder()
ZenLib::Char
char Char
Definition: Conf.h:215
ZenLib::ZtringListListF::Backup_Nb_Max
int8u Backup_Nb_Max
Definition: ZtringListListF.h:57
ZenLib::ZtringListListF
ZtringListList with file management.
Definition: ZtringListListF.h:29
ZtringListList.h
ZenLib::ZtringListListF::Load
bool Load(const Ztring &FileName=Ztring())
ZenLib::ZtringListListF::Sauvegarde
bool Sauvegarde
Definition: ZtringListListF.h:56
ZenLib::ZtringListListF::Name
Ztring Name
Definition: ZtringListListF.h:55
ZenLib
Definition: BitStream.h:23
ZenLib::ZtringListListF::CSV_Charger
bool CSV_Charger()
ZenLib::ZtringListListF::Backup_Set
void Backup_Set(bool Save)
ZenLib::ZtringListListF::CFG_Charger
bool CFG_Charger()
ZenLib::ZtringListListF::Local
bool Local
Definition: ZtringListListF.h:59
ZenLib::ZtringListListF::Local_Set
void Local_Set(bool Local)
ZenLib::ZtringListList
Vector of vectors of strings manipulation (based on std::vector>) ...
Definition: ZtringListList.h:29
ZenLib::Ztring
String manipulation (based on std::(w)string)
Definition: Ztring.h:49
ZenLib::ZtringListListF::CSV_Sauvegarder
bool CSV_Sauvegarder()
ZenLib::FileName
File name manipulation.
Definition: FileName.h:29
ZenLib::ZtringListListF::Backup_Nb
int8u Backup_Nb
Definition: ZtringListListF.h:58
ZenLib::ZtringListListF::Cancel
bool Cancel()
ZenLib::ZtringListListF::File_Load
bool File_Load()
ZenLib::ZtringListListF::Backup_Count_Set
void Backup_Count_Set(int8u Count)
ZenLib::ZtringListListF::Save
bool Save(const Ztring &FileName=Ztring())
ZenLib::ZtringListListF::NettoyerEspaces
bool NettoyerEspaces(Ztring &ANettoyer)
ZenLib::ZtringListListF::ZtringListListF
ZtringListListF()