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 #include "DiaryModesEnum.hxx"
21 /*--------------------------------------------------------------------------*/
32 int openDiary(std::wstring _wfilename,int _mode);
33 int openDiary(std::wstring _wfilename);
35 /* close a diary by ID */
36 bool closeDiary(int ID_diary);
38 /* close all diaries */
39 void closeAllDiaries(void);
41 /* get IDs of diaries */
42 int * getIDs(int *sizeID);
44 /* get filenames of diaries */
45 std::wstring * getFilenames(int *sizeFilenames);
47 /* get filename by IDs */
48 std::wstring getFilename(int ID_diary);
50 /* write string in diaries */
51 void write(std::wstring _wstr, bool bInput);
52 void writeln(std::wstring _wstr, bool bInput);
54 /* test if exists a diary by ID */
55 bool exists(int ID_diary);
57 /* test if exists a diary by filename */
58 bool exists(std::wstring _wfilename);
60 /* set & get Resume mode */
61 void setSuspendWrite(bool bWith);
62 bool *getSuspendWrite(int *sizeboolArray);
64 void setSuspendWrite(int ID_diary, bool bWith);
65 bool getSuspendWrite(int ID_diary);
67 /* get ID by filename */
68 int getID(std::wstring _wfilename);
71 void setFilterMode(int ID_diary, diary_filter mode);
73 void setPrefixMode(int ID_diary,diary_prefix_time_format iPrefixMode);
74 diary_prefix_time_format getPrefixMode(int ID_diary);
76 void setPrefixIoModeFilter(int ID_diary, diary_prefix_time_filter mode);
77 diary_prefix_time_filter getPrefixIoModeFilter(int ID_diary);
81 std::list<Diary> LSTDIARY;
86 #endif /* __DIARYLIST_HXX__ */
87 /*--------------------------------------------------------------------------*/