📄 filedatasource.h
字号:
/*----------------------------------------------------------------------
Copyright (c) 1998,1999 Gipsysoft. All Rights Reserved.
Please see the file "licence.txt" for licencing details.
File: FileDataSource.h
Owner: russf@gipsysoft.com
Purpose: Data source object that is based upon a file.
----------------------------------------------------------------------*/
#ifndef FILEDATASOURCE_H
#define FILEDATASOURCE_H
#ifndef _INC_STDIO
#include <stdio.h>
#endif // _INC_STDIO
#ifndef DATASOURCEABC_H
#include "DataSourceABC.h"
#endif // DATASOURCEABC_H
class CFileDataSource : public CDataSourceABC
{
public:
CFileDataSource();
virtual ~CFileDataSource();
bool Open( LPCTSTR pcszFilename );
virtual bool ReadBytes( BYTE *pbBuffer, UINT uCount );
virtual bool SetRelativePos( int n);
virtual bool Reset();
virtual int GetSize() const;
virtual int GetCurrentPos() const;
private:
FILE *m_pFile;
};
#endif //FILEDATASOURCE_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -