fishbowl/engine/include/fishbone/file.h

30 lines
473 B
C
Raw Normal View History

2026-05-27 23:51:37 +09:00
#ifndef __FISHBONE_FILE_H__
#define __FISHBONE_FILE_H__
2026-06-01 13:50:35 +09:00
#include <fishbone/pre.h>
2026-05-27 23:51:37 +09:00
namespace fishbone {
class File;
};
2026-06-01 13:50:35 +09:00
/* no includes */
2026-05-27 23:51:37 +09:00
namespace fishbone {
class File {
std::ifstream ifs;
std::ofstream ofs;
public:
2026-05-30 22:41:58 +09:00
File();
2026-05-27 23:51:37 +09:00
File(std::string path, std::string type);
~File();
2026-05-30 22:41:58 +09:00
virtual size_t read(void* buffer, size_t size);
virtual size_t write(const void* buffer, size_t size);
2026-05-27 23:51:37 +09:00
size_t size;
bool good;
};
}; // namespace fishbone
#endif