1 /****************************************************************************
3 * Copyright 2008 Jose Fonseca
5 * This program is free software: you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 ****************************************************************************/
31 File(const TCHAR *szName, const TCHAR *szExtension);
34 void Open(const TCHAR *szName, const TCHAR *szExtension);
37 void Write(const char *szText);
41 TCHAR szFileName[MAX_PATH];
45 class Log : public File
48 Log(const TCHAR *szName);
52 void Tag(const char *name);
53 void BeginTag(const char *name);
54 void BeginTag(const char *name,
55 const char *attr1, const char *value1);
56 void BeginTag(const char *name,
57 const char *attr1, const char *value1,
58 const char *attr2, const char *value2);
59 void EndTag(const char *name);
60 void Text(const char *text);
61 void TextF(const char *format, ...);
62 void BeginCall(const char *function);
64 void BeginParam(const char *name, const char *type);
66 void BeginReturn(const char *type);
70 void Escape(const char *s);
77 #endif /* _LOG_HPP_ */