-
Notifications
You must be signed in to change notification settings - Fork 0
/
t_Glimpselog.h
52 lines (45 loc) · 1.28 KB
/
t_Glimpselog.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
/*
* Thomas Pantzer: t_Glimpselog.h, Version: v0.1a 22.04.2010 13:46
*
*
* Copyright 2010 by Thomas Pantzer
*
* Permission to use, copy, modify, and distribute this software for noncommercial
* use and without fee is hereby granted, provided that the above copyright notice
* appear in all copies and that both that copyright notice and this permission
* notice appear in supporting documentation, and that the name of the Author not be
* used in advertising or publicity pertaining to distribution of the software
* without specific, written prior permission. The Author makes no representations about
* the suitability of this software for any purpose. It is provided "as is"
* without expressed or implied warranty.
*
*
* pantec@doha.private.site (Thomas Pantzer,,,)
*
*/
#ifndef _T_GLIMPSELOG_H
#define _T_GLIMPSELOG_H
#include "tns_util/porting.h" // need fileHandle
class t_GlimpseLog {
private:
fileHandle fd;
int offset,maxlen;
char logfile[512];
char lastlogstring[2048];
public:
t_GlimpseLog() {
#if _WINDOWS | WIN32
#else
fd = -1;
#endif
offset = -1;
maxlen = 0;
lastlogstring[0] = '\0';
};
void Open(char * target);
void Write(char * msg);
void Advance(char * msg);
void Advance(void);
fileHandle getFD(void) {return fd;};
};
#endif