fishbowl/engine/include/fishbone/file.h
2026-06-01 13:50:35 +09:00

30 lines
473 B
C++

#ifndef __FISHBONE_FILE_H__
#define __FISHBONE_FILE_H__
#include <fishbone/pre.h>
namespace fishbone {
class File;
};
/* no includes */
namespace fishbone {
class File {
std::ifstream ifs;
std::ofstream ofs;
public:
File();
File(std::string path, std::string type);
~File();
virtual size_t read(void* buffer, size_t size);
virtual size_t write(const void* buffer, size_t size);
size_t size;
bool good;
};
}; // namespace fishbone
#endif