65 working_file = open(name, O_CREAT|O_TRUNC|O_WRONLY, 0666);
69 SG_ERROR(
"Unknown file operation. Something other than 'r'/'w' specified.\n")
120 SG_ERROR(
"Error, failed to write example!\n")
134 SG_ERROR(
"Error closing the file!\n")
144 while (pointer !=
endloaded && *pointer != terminal)
164 return readto(pointer,terminal);
int working_file
file descriptor
void reserve(size_t length)
T * end
Pointer to last set element in the array.
T * begin
Pointer to first element of the array.
virtual void use_file(int fd)
virtual void reset_file()
virtual bool close_file()
ssize_t readto(char *&pointer, char terminal)
v_array< char > space
buffer space
virtual ssize_t write_file(const void *buf, size_t nbytes)
T * end_array
Pointer to end of array, based on memory reserved.
virtual int open_file(const char *name, char flag='r')
char * endloaded
end of loaded values
virtual ssize_t read_file(void *buf, size_t nbytes)
unsigned int buf_read(char *&pointer, int n)
void buf_write(char *&pointer, int n)
all of classes and functions are contained in the shogun namespace