27 lines
432 B
C++
27 lines
432 B
C++
#ifndef __FISHBONE_FILE_H__
|
|
#define __FISHBONE_FILE_H__
|
|
|
|
namespace fishbone {
|
|
class File;
|
|
};
|
|
|
|
#include <fishbone/machdep.h>
|
|
|
|
namespace fishbone {
|
|
class File {
|
|
std::ifstream ifs;
|
|
std::ofstream ofs;
|
|
|
|
public:
|
|
File(std::string path, std::string type);
|
|
~File();
|
|
|
|
size_t read(void* buffer, size_t size);
|
|
size_t write(const void* buffer, size_t size);
|
|
|
|
size_t size;
|
|
bool good;
|
|
};
|
|
}; // namespace fishbone
|
|
|
|
#endif
|