📄 warfiledriverfiledynamic.h
字号:
/** */#ifndef WAR_FILE_DRIVER_FILE_DYNAMIC_H#define WAR_FILE_DRIVER_FILE_DYNAMIC_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_FILE_DRIVER_FILE_H# include "WarFileDriverFile.h"#endif/* LOCAL INCLUDES *//* FORWARD REFERENCES */class WarFileDriverDynamic;#ifdef __cplusplusextern "C" {#endif/****************** BEGIN OLD STYLE C spesific ********//****************** END OLD STYLE C spesific **********/#ifdef __cplusplus }#endif/****************** BEGIN C++ spesific ****************/#ifdef __cplusplusclass WarFileDriverFileDynamic :public WarFileDriverFile {public: typedef WarCollector<char> content_t; // LIFECYCLE /** * Default constructor. */ WarFileDriverFileDynamic(WarFileDriverDynamic *pDriver); /** * Destructor. */ ~WarFileDriverFileDynamic(); // OPERATORS // OPERATIONS virtual void Open(const WarUrl& openUrl, war_uint32_t openFlags) throw(WarException); virtual void Close() throw(WarException); virtual war_uint32_t Read(war_cptr_t Buf, war_uint32_t bytes) throw(WarException); /// virtual void Flush() throw(WarException); /// virtual war_flen_t Seek(war_flen_t fileOffset, SeekModes seekMode = WAR_SEEK_BEGIN) throw(WarException); // INQUIRY virtual war_flen_t GetLength() throw(WarException); /// virtual war_flen_t GetPosition() throw(WarException); /// virtual bool IsEof() throw(WarException); /// virtual bool IsOpen() throw(WarException); // CALLBACK // ACCESS // INQUIRY protected: content_t *mpContent; // The default implementation "reads" from this static buffer. bool mIsOpen; war_flen_t mPosition; // Current offset in "file" private:};/* INLINE METHODS *//* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif /* WAR_FILE_DRIVER_FILE_DYNAMIC_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -