You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.3 KiB
89 lines
2.3 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 29/03/2000
|
|
// Last modification: 08/10/2003
|
|
// Project Intruder Position Indicator
|
|
// SUBSYSTEM: Logs targets
|
|
// FILE: LogFiles.h
|
|
// AUTHOR: Chizhevskiy Sergey
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of class CLogFiles
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __LOG__H__INCLUDED__
|
|
#define __LOG__H__INCLUDED__
|
|
|
|
#include "Structs.h"
|
|
#include "VideoWnd.h"
|
|
#include "Locator.h"
|
|
#include "Profile.h"
|
|
#include "VideoStaticWnd.h"
|
|
#include "..\lglib\thread.h"
|
|
|
|
#define REPORT_IMAGES_IN_BLOCK 4
|
|
|
|
class CLogFiles
|
|
{
|
|
public:
|
|
CLogFiles();
|
|
~CLogFiles();
|
|
|
|
public:
|
|
BOOL Create( CVideoWnd *pVideoWnd, CVideoWnd *pFixedVideoWnd, CLgsRadarWnd *pLocator, CProfile *pProfile );
|
|
|
|
public:
|
|
void SetDebugMode(BOOL fMode);
|
|
void Begin();
|
|
void StoreInformation(LPCTSTR pStr, SYSTEMTIME &time);
|
|
void StoreLocator();
|
|
void StoreImage( TARGET_DESCRIPTION& td, BOOL bFixed );
|
|
HBITMAP StorePreview(TARGET_DESCRIPTION& td);
|
|
void StoreText(TARGET_DESCRIPTION& td);
|
|
void Reset();
|
|
|
|
void StoreInformationEx(LPCTSTR pStr, SYSTEMTIME &time);
|
|
|
|
private:
|
|
friend DWORD CALLBACK ThreadProcLogFiles(LPVOID lpvParam);
|
|
|
|
private:
|
|
void CheckFreeSpace();
|
|
BOOL CheckOldFiles(SYSTEMTIME st);
|
|
void DeleteOldFiles(SYSTEMTIME st);
|
|
|
|
private:
|
|
INT PrepareImageText( TARGET_DESCRIPTION& td, LPCTSTR pTag, LPTSTR pText, INT nMaxText );
|
|
|
|
private:
|
|
TCHAR m_pPathText[MAX_PATH];
|
|
TCHAR m_pPathTextEx[MAX_PATH];
|
|
TCHAR m_pPathImage[MAX_PATH];
|
|
TCHAR m_pPathPreview[MAX_PATH];
|
|
TCHAR m_pPathLocator[MAX_PATH];
|
|
LPBITMAPINFO m_lpBmi;
|
|
CVideoWnd *m_pVideoWnd;
|
|
CVideoWnd *m_pFixedVideoWnd;
|
|
CLgsRadarWnd *m_pLocator;
|
|
CProfile *m_pProfile;
|
|
HANDLE m_hEventQuit;
|
|
HANDLE m_hThread;
|
|
BOOL m_bDebugMode;
|
|
BOOL m_PreviewNumber;
|
|
BOOL m_ImageNumber;
|
|
BOOL m_bReset;
|
|
BOOL m_bWriteImage;
|
|
BOOL m_bWriteText;
|
|
INT m_nDays;
|
|
BOOL m_bClockwise;
|
|
|
|
private:
|
|
CLgImageDIB m_ImageDIB;
|
|
CLgImageDIB m_PreviewDIB;
|
|
|
|
CLgImageJPEG m_ImageJPEG;
|
|
CLgImageJPEG m_PreviewJPEG;
|
|
};
|
|
|
|
#endif
|