⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fvsfile.h

📁 本系统是一个指纹识别系统,可以用来识别用户的指纹,可以用在安全性高的行业或部门.
💻 H
字号:
#ifndef __FVSFILE_HEADER__#define __FVSFILE_HEADER__#include <stdio.h>#include "fvstypes.h"typedef enum FileOptions_t{    FILE_READ   = (1<<1),    FILE_WRITE  = (1<<2),    FILE_CREATE = (1<<3)} FileOptions_t;class FvsFile{	public: 		// constructors/destructor		// default constructor		FvsFile(void); 		// constructor that also opens files		FvsFile(const String_t name, const uint32_t flags); 		// destructor		~FvsFile(void);		// Open/close functions		FvsError_t Open(const String_t name, const uint32_t flags);		FvsError_t Close(void);		// Read/Write functions		uint32_t Read(pointer_t data, uint32_t len);		uint32_t Write(pointer_t data, uint32_t len);		// Read by byte or word		uint8_t GetByte(void);		uint16_t GetWord(void);		// Test functions		bool_t IsOpen(void) const;		bool_t IsAtEOF(void) const;		// Commit changes		FvsError_t Commit(void);		// Seek functions		FvsError_t SeekToBegin(void);		FvsError_t SeekToEnd(void);		FvsError_t Seek(uint32_t newpos);		// GetPosition function		uint32_t GetPosition(void) const;	//private:		// File pointer		FILE *fp;};#endif //__FVSFILE_HEADER__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -