fishbowl/engine/include/fishbone/file.h
2026-06-06 22:30:58 +09:00

31 lines
501 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;
bool opened;
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);
bool good();
size_t size;
};
}; // namespace fishbone
#endif