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 /*--------------------------------------------------------------------------*/
16 /*--------------------------------------------------------------------------*/
18 /*--------------------------------------------------------------------------*/
22 std::wstring wfilename;
36 // 0 prefix @ beginning of Input and Output
37 // 1 prefix only @ beginning of Input
38 // 2 prefix only @ beginning of Output
40 int PrefixIoModeFilter;
42 // 0 all (output and input)
48 * used on Windows to replace carriage return
50 std::wstring replace(std::wstring text, std::wstring s, std::wstring replacement);
56 Diary(std::wstring _wfilename,int _mode,int ID);
64 * get filename of this diray
66 std::wstring getFilename(void);
71 void setIOMode(int _mode);
75 * get ID of this diary
80 * write a string in this diary
82 void write(std::wstring _wstr, bool bInput);
85 * write a line in this diary
87 void writeln(std::wstring _wstr, bool bInput);
90 * get & set Resume mode
92 bool setSuspendWrite(bool bWith);
93 bool getSuspendWrite(void);
96 * get & set Prefix mode
98 void setPrefixMode(int iPrefixMode);
99 int getPrefixMode(void);
102 * get & set IO mode filter
104 void setPrefixIoModeFilter(int mode);
105 int getPrefixIoModeFilter(void);
108 #endif /* __DIARY_HXX__ */
109 /*--------------------------------------------------------------------------*/
110 bool compareDiary(Diary first,Diary second);
111 /*--------------------------------------------------------------------------*/