24 lines
343 B
C
24 lines
343 B
C
|
#ifndef FILEBASE_H
|
||
|
#define FILEBASE_H
|
||
|
|
||
|
#include <memory>
|
||
|
|
||
|
enum FileOperType {
|
||
|
TYPE_LOCAL,
|
||
|
TYPE_REMOTE
|
||
|
};
|
||
|
|
||
|
class CFileBase
|
||
|
{
|
||
|
public:
|
||
|
CFileBase();
|
||
|
virtual ~CFileBase();
|
||
|
|
||
|
public:
|
||
|
virtual bool Open(const char* filename) = 0;
|
||
|
|
||
|
public:
|
||
|
static std::shared_ptr<CFileBase> Instance(FileOperType type);
|
||
|
};
|
||
|
|
||
|
#endif // FILEBASE_H
|