Barst
2.0
A server that controls lab hardware.
Barst
Log buffer.h
1
3
#ifndef _LOG_BUFFER_H_
4
#define _LOG_BUFFER_H_
5
6
#include <Windows.h>
7
#include "cpl defs.h"
8
9
22
class
CLogBuffer
23
{
24
private
:
25
char
m_achQueue[128][128];
// Buffer holding the log text
26
CRITICAL_SECTION m_rLogLock;
// Protects writing and reading from log
27
int
m_nLogLine;
// The line number of the next item to be appended .
28
// Note: if empty, end must be before start and can't overlap otherwise counts as one item in buffer
29
int
m_nStart;
// Position of first valid log if any
30
int
m_nEnd;
// Position of last valid log if any
31
int
m_nSize;
// Number of log items in buffer
32
public
:
33
CLogBuffer
(){};
34
virtual
~
CLogBuffer
(){};
35
39
int
Add
(
const
TCHAR *szItem){
return
0;}
46
void
MoveLog
(
char
szDest[][128],
int
nToWrite,
int
* pnWrote){};
48
int
GetSize
(){
return
0;}
50
void
ClearLog
(){};
51
};
52
53
54
#endif
CLogBuffer::Add
int Add(const TCHAR *szItem)
Definition:
Log buffer.h:39
CLogBuffer::ClearLog
void ClearLog()
Definition:
Log buffer.h:50
CLogBuffer
Definition:
Log buffer.h:22
CLogBuffer::MoveLog
void MoveLog(char szDest[][128], int nToWrite, int *pnWrote)
Definition:
Log buffer.h:46
CLogBuffer::GetSize
int GetSize()
Definition:
Log buffer.h:48
Generated on Fri Oct 18 2019 00:06:07 for Barst by
1.8.13