#include <ocfile.h>
Public Member Functions | |
OcFile () | |
virtual | ~OcFile () |
boolean | open (const char *filename, const char *type) |
void | set_name (const char *s) |
const char * | get_name () |
const char * | dir () |
void | close () |
void | print (const char *s) |
FILE * | file () |
boolean | is_open () |
boolean | eof () |
void | flush () |
boolean | mktemp () |
boolean | unlink () |
void | file_chooser_style (char *type, char *path, char *banner=nil, char *filter=nil, char *accept=nil, char *cancel=nil) |
boolean | file_chooser_popup () |
Private Types | |
enum | { N, R, W, A } |
Private Attributes | |
FileChooser * | fc_ |
int | chooser_type_ |
CopyString | filename_ |
CopyString | dirname_ |
FILE * | file_ |
OcFile::~OcFile | ( | ) | [virtual] |
void OcFile::close | ( | ) |
Referenced by SaveState::read(), set_name(), SaveState::write(), and ~OcFile().
FILE * OcFile::file | ( | ) |
References file_, get_name(), and hoc_execerror().
Referenced by eof(), hoc_obj_file_arg(), print(), SaveState::read(), and SaveState::write().
boolean OcFile::file_chooser_popup | ( | ) |
References A, chooser_type_, d, fc_, hoc_execerror(), N, nil, ok_to_read(), ok_to_write(), open(), R, set_name(), and W.
void OcFile::file_chooser_style | ( | char * | type, | |
char * | path, | |||
char * | banner = nil , |
|||
char * | filter = nil , |
|||
char * | accept = nil , |
|||
char * | cancel = nil | |||
) |
const char* OcFile::get_name | ( | ) | [inline] |
References filename_.
Referenced by file(), hoc_obj_file_arg(), SaveState::read(), unlink(), and SaveState::write().
boolean OcFile::is_open | ( | ) | [inline] |
References file_.
Referenced by hoc_obj_file_arg(), and open().
boolean OcFile::mktemp | ( | ) |
boolean OcFile::open | ( | const char * | filename, | |
const char * | type | |||
) |
References expand_env_var(), file_, is_open(), nrnmpi_myid_world, and set_name().
Referenced by file_chooser_popup(), SaveState::read(), and SaveState::write().
void OcFile::print | ( | const char * | s | ) | [inline] |
void OcFile::set_name | ( | const char * | s | ) |
References close(), and filename_.
Referenced by file_chooser_popup(), mktemp(), and open().
boolean OcFile::unlink | ( | ) |
int OcFile::chooser_type_ [private] |
Referenced by file_chooser_popup(), and file_chooser_style().
CopyString OcFile::dirname_ [private] |
Referenced by dir().
FileChooser* OcFile::fc_ [private] |
Referenced by dir(), file_chooser_popup(), file_chooser_style(), OcFile(), and ~OcFile().
FILE* OcFile::file_ [private] |
CopyString OcFile::filename_ [private] |
Referenced by get_name(), and set_name().