Old fashion design for PC-104
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

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT: Laserguard libraries
  7. // SUBSYSTEM: MFC support library
  8. // FILE: LgBitCodeFile.h
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of CLgBitCodeFile
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__BIT__CODE__FILE__H__INCLUDED__
  15. #define __LG__BIT__CODE__FILE__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\LgBitCod.h"
  20. class CLgBitCodeFile :
  21. public CFile
  22. {
  23. public:
  24. CLgBitCodeFile( INT nBase );
  25. CLgBitCodeFile( HANDLE hFile, INT nBase );
  26. CLgBitCodeFile( LPCTSTR lpszFileName, UINT nOpenFlags, INT nBase );
  27. virtual ~CLgBitCodeFile();
  28. public:
  29. void InitBitCoder( INT nBase );
  30. public:
  31. virtual BOOL Open( LPCTSTR lpszFileName, UINT nOpenFlags, CFileException* pError = NULL );
  32. virtual void Close();
  33. public:
  34. virtual UINT Read( void* lpBuf, UINT nCount );
  35. virtual void Write( const void* lpBuf, UINT nCount );
  36. public:
  37. virtual ULONGLONG Seek( LONGLONG lOff, UINT nFrom );
  38. private:
  39. BYTE m_pBuffer[MAX_PATH];
  40. INT m_nBase;
  41. BOOL m_bPortion;
  42. private:
  43. UINT m_nOpenFlags;
  44. private:
  45. CLgBitCode m_BitCoder;
  46. };
  47. #endif