#include "File.h"
#include "../error/error.h"
#include "Object.h"
#include "Object.c"
#include "../io/fopen.c"
#include "../io/fgetl.c"
Classes | |
struct | FileClass |
struct | File |
Enumerations | |
enum | _Nps_File_Mode { _Nps_File_Unset = 0, _Nps_File_Read, _Nps_File_Write } |
enum | _nps_File_status { unset = 0, open_read, open_write } |
Functions | |
int | FileClass_dtor (struct FileClass *self, nps_error_t *err) |
struct File * | File_ctor (struct File *file, nps_error_t *error, va_list *app) |
int | File_dtor (struct File *file, nps_error_t *error) |
int | File_close (struct File *file, nps_error_t *error) |
struct File * | File_ofFILE (nps_error_t *error, FILE *f, const char *const mode) |
struct File * | File_open (nps_error_t *error, const char *const str, const char *const mode) |
ssize_t | File_getline (struct File *file, char **lineptr, size_t *n) |
int | File_error (struct File *file, nps_error_t *error) |
int | nps_initFile (nps_error_t *error) |
Variables | |
nps_domain_t | _Nps_File_Dom = {"File"} |
nps_errorType_t | _Nps_File_Read_Err = {"Unable to read file"} |
struct FileClass * | FileClass |
struct File * | File |
enum _Nps_File_Mode |
enum _nps_File_status |
int File_close | ( | struct File * | file, | |
nps_error_t * | error | |||
) |
struct File* File_ctor | ( | struct File * | file, | |
nps_error_t * | error, | |||
va_list * | app | |||
) | [read] |
int File_dtor | ( | struct File * | file, | |
nps_error_t * | error | |||
) |
int File_error | ( | struct File * | file, | |
nps_error_t * | error | |||
) |
ssize_t File_getline | ( | struct File * | file, | |
char ** | lineptr, | |||
size_t * | n | |||
) |
struct File* File_ofFILE | ( | nps_error_t * | error, | |
FILE * | f, | |||
const char *const | mode | |||
) | [read] |
struct File* File_open | ( | nps_error_t * | error, | |
const char *const | str, | |||
const char *const | mode | |||
) | [read] |
int FileClass_dtor | ( | struct FileClass * | self, | |
nps_error_t * | err | |||
) |
int nps_initFile | ( | nps_error_t * | error | ) |
nps_domain_t _Nps_File_Dom = {"File"} |
nps_errorType_t _Nps_File_Read_Err = {"Unable to read file"} |