forked from UnitexGramLab/unitex-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathActivityLogger.h
76 lines (55 loc) · 2.46 KB
/
ActivityLogger.h
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
/*
* Unitex
*
* Copyright (C) 2001-2017 Université Paris-Est Marne-la-Vallée <unitex@univ-mlv.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*
*/
/*
* File created and contributed by Gilles Vollant (Ergonotics SAS)
* as part of an UNITEX optimization and reliability effort
*
* additional information: http://www.ergonotics.com/unitex-contribution/
* contact : unitex-contribution@ergonotics.com
*
*/
#ifndef _ACTIVITY_LOGGER_H_INCLUDED
#define _ACTIVITY_LOGGER_H_INCLUDED 1
#include "Af_stdio.h"
#include "UnitexTool.h"
#ifndef HAS_UNITEX_NAMESPACE
#define HAS_UNITEX_NAMESPACE 1
#endif
namespace unitex {
void Call_logger_fnc_before_af_fopen(const char* name,const char* MODE);
void Call_logger_fnc_after_af_fopen(const char* name,const char* MODE,ABSTRACTFILE*);
void Call_logger_fnc_before_af_fclose(ABSTRACTFILE*);
void Call_logger_fnc_after_af_fclose(ABSTRACTFILE*,int);
void Call_logger_fnc_before_af_rename(const char* name1,const char* name2);
void Call_logger_fnc_after_af_rename(const char* name1,const char* name2,int);
void Call_logger_fnc_before_af_copy(const char* name1,const char* name2);
void Call_logger_fnc_after_af_copy(const char* name1,const char* name2,int);
void Call_logger_fnc_before_af_remove(const char* name);
void Call_logger_fnc_after_af_remove(const char* name,int);
void Call_logger_fnc_before_af_remove_folder(const char* name);
void Call_logger_fnc_after_af_remove_folder(const char* name, int);
int Call_logger_need_log_af_remove();
void Call_logger_fnc_before_calling_tool(mainFunc*,int argc,char* const argv[]);
void Call_logger_fnc_after_calling_tool(mainFunc*,int argc,char* const argv[],int);
void Call_logger_fnc_LogOutWrite(const void*Buf, size_t size);
void Call_logger_fnc_LogErrWrite(const void*Buf, size_t size);
} // namespace unitex
#endif