gtransm/protocol/filebase.h

24 lines
343 B
C
Raw Normal View History

2025-04-03 17:19:39 +08:00
#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