Xbase64 4.0.1
C++ Library for handling Xbase (DBF) format type files
xblog.h
Go to the documentation of this file.
1/* xblog.h
2
3XBase64 Software Library
4
5Copyright (c) 1997,2003,2014,2022 Gary A Kunkel
6
7The xb64 software library is covered under the terms of the GPL Version 3, 2007 license.
8
9Email Contact:
10
11 XDB-devel@lists.sourceforge.net
12 XDB-users@lists.sourceforge.net
13
14*/
15
16#ifndef __XB_XBLOG_H__
17#define __XB_XBLOG_H__
18
19#ifdef CMAKE_COMPILER_IS_GNUCC
20#pragma interface
21#endif
22
23namespace xb{
24
25#ifdef XB_LOGGING_SUPPORT
26
28
41class XBDLLEXPORT xbLog : public xbFile {
42 public:
43 xbLog();
44 xbLog( const xbString &sLogFileName );
45 ~xbLog();
46
47 xbInt16 LogClose ();
48 xbInt16 LogGetStatus ();
49 xbInt16 LogOpen ();
50 void LogSetStatus ( xbBool bLogStatus );
51 void LogSetLogSize( size_t lSize ); // { LogSize = size; }
52 xbInt16 LogWrite ( const xbString &LogEntry, xbInt16 iOutputOption = 0 );
53 xbInt16 LogWriteBytes( xbUInt32 lByteCnt, const char *p );
54
55 private:
56 xbBool bLoggingStatus; // false = logging off
57 // true = logging on
58 size_t lLogSize;
59 xbInt16 iShareMode;
60};
61
62#endif // XB_LOGGING_SUPPORT
63} // namespace
64#endif // XB_XBLOG_H__
65
66
Definition: xbdate.cpp:19
class XBDLLEXPORT xbLog
Definition: xbxbase.h:26
short int xbBool
Definition: xbtypes.h:24