nps/File.c File Reference

#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 FileFile_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 FileFile_ofFILE (nps_error_t *error, FILE *f, const char *const mode)
struct FileFile_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 FileClassFileClass
struct FileFile

Enumeration Type Documentation

Enumerator:
_Nps_File_Unset 
_Nps_File_Read 
_Nps_File_Write 
Enumerator:
unset 
open_read 
open_write 

Function Documentation

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  ) 

Variable Documentation

nps_errorType_t _Nps_File_Read_Err = {"Unable to read file"}
struct File* File
struct FileClass * FileClass
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sun Sep 11 09:40:46 2011 for NPSML by  doxygen 1.6.3