00001 #ifndef __J2K__File_HPP__
00002 #define __J2K__File_HPP__
00003
00004 #include <j2k/Fred/Standard.hpp>
00005 #include <j2k/Fred/Error/JErrorController.hpp>
00006
00007 #include <errno.h>
00008 #include <stdio.h>
00009 #include <fcntl.h>
00010 #include <unistd.h>
00011 #include <sys/types.h>
00012 #include <sys/stat.h>
00013 #include <stdlib.h>
00014
00015 class File {
00016 public:
00017 File( const char* n, int o = O_RDONLY );
00018 virtual ~File();
00019 size_t read( void* buffer, size_t sz );
00020 void write( const void* buffer, size_t sz );
00021
00022 private:
00023 int fd;
00024 int oflag;
00025
00026 };
00027
00028 #endif