1 /*--------------------------------------------------------------------------*/
3 * ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) DIGITEO - 2009 - Allan CORNET
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 /*--------------------------------------------------------------------------*/
14 #ifndef __DIARYLIST_HXX__
15 #define __DIARYLIST_HXX__
16 /*--------------------------------------------------------------------------*/
20 /*--------------------------------------------------------------------------*/
31 int openDiary(std::wstring _wfilename,int _mode);
32 int openDiary(std::wstring _wfilename);
34 /* close a diary by ID */
35 bool closeDiary(int ID_diary);
37 /* close all diaries */
38 void closeAllDiaries(void);
40 /* get IDs of diaries */
41 int * getIDs(int *sizeID);
43 /* get filenames of diaries */
44 std::wstring * getFilenames(int *sizeFilenames);
46 /* get filename by IDs */
47 std::wstring getFilename(int ID_diary);
49 /* write string in diaries */
50 void write(std::wstring _wstr, bool bInput);
51 void writeln(std::wstring _wstr, bool bInput);
53 /* test if exists a diary by ID */
54 bool exists(int ID_diary);
56 /* test if exists a diary by filename */
57 bool exists(std::wstring _wfilename);
59 /* set & get Resume mode */
60 void setSuspendWrite(bool bWith);
61 bool *getSuspendWrite(int *sizeboolArray);
63 void setSuspendWrite(int ID_diary, bool bWith);
64 bool getSuspendWrite(int ID_diary);
66 /* get ID by filename */
67 int getID(std::wstring _wfilename);
70 void setFilterMode(int ID_diary, int mode);
72 void setPrefixMode(int ID_diary,int iPrefixMode);
73 int getPrefixMode(int ID_diary);
75 void setPrefixIoModeFilter(int ID_diary,int mode);
76 int getPrefixIoModeFilter(int ID_diary);
80 std::list<Diary> LSTDIARY;
85 #endif /* __DIARYLIST_HXX__ */
86 /*--------------------------------------------------------------------------*/