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.
59 lines
1.4 KiB
59 lines
1.4 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT: Laserguard libraries
|
|
// SUBSYSTEM: MFC support library
|
|
// FILE: LgBitCodeFile.h
|
|
// AUTHOR: Chizhevskiy Sergey
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of CLgBitCodeFile
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __LG__BIT__CODE__FILE__H__INCLUDED__
|
|
#define __LG__BIT__CODE__FILE__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\LgBitCod.h"
|
|
|
|
class CLgBitCodeFile :
|
|
public CFile
|
|
{
|
|
public:
|
|
CLgBitCodeFile( INT nBase );
|
|
CLgBitCodeFile( HANDLE hFile, INT nBase );
|
|
CLgBitCodeFile( LPCTSTR lpszFileName, UINT nOpenFlags, INT nBase );
|
|
virtual ~CLgBitCodeFile();
|
|
|
|
public:
|
|
void InitBitCoder( INT nBase );
|
|
|
|
public:
|
|
virtual BOOL Open( LPCTSTR lpszFileName, UINT nOpenFlags, CFileException* pError = NULL );
|
|
virtual void Close();
|
|
|
|
public:
|
|
virtual UINT Read( void* lpBuf, UINT nCount );
|
|
virtual void Write( const void* lpBuf, UINT nCount );
|
|
|
|
public:
|
|
virtual ULONGLONG Seek( LONGLONG lOff, UINT nFrom );
|
|
|
|
private:
|
|
BYTE m_pBuffer[MAX_PATH];
|
|
INT m_nBase;
|
|
BOOL m_bPortion;
|
|
|
|
private:
|
|
UINT m_nOpenFlags;
|
|
|
|
private:
|
|
CLgBitCode m_BitCoder;
|
|
};
|
|
|
|
#endif
|