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