OcFile Class Reference

#include <ocfile.h>

List of all members.

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_

Member Enumeration Documentation

anonymous enum [private]
Enumerator:
N 
R 
W 
A 

Constructor & Destructor Documentation

OcFile::OcFile (  ) 

References fc_, file_, and nil.

OcFile::~OcFile (  )  [virtual]

References close(), and fc_.

Here is the call graph for this function:


Member Function Documentation

void OcFile::close (  ) 

References file_, and nil.

Referenced by SaveState::read(), set_name(), SaveState::write(), and ~OcFile().

const char * OcFile::dir (  ) 

References dirname_, and fc_.

boolean OcFile::eof (  ) 

References file().

Here is the call graph for this function:

FILE * OcFile::file (  ) 

References file_, get_name(), and hoc_execerror().

Referenced by eof(), hoc_obj_file_arg(), print(), SaveState::read(), and SaveState::write().

Here is the call graph for this function:

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.

Here is the call graph for this function:

void OcFile::file_chooser_style ( char *  type,
char *  path,
char *  banner = nil,
char *  filter = nil,
char *  accept = nil,
char *  cancel = nil 
)

References A, chooser_type_, fc_, N, R, and W.

void OcFile::flush (  )  [inline]

References file_.

const char* OcFile::get_name (  )  [inline]
boolean OcFile::is_open (  )  [inline]

References file_.

Referenced by hoc_obj_file_arg(), and open().

boolean OcFile::mktemp (  ) 

References ivoc_get_temp_file(), s, and set_name().

Here is the call graph for this function:

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().

Here is the call graph for this function:

void OcFile::print ( const char *  s  )  [inline]

References file(), and fprintf().

Here is the call graph for this function:

void OcFile::set_name ( const char *  s  ) 

References close(), and filename_.

Referenced by file_chooser_popup(), mktemp(), and open().

Here is the call graph for this function:

boolean OcFile::unlink (  ) 

References get_name().

Here is the call graph for this function:


Member Data Documentation

CopyString OcFile::dirname_ [private]

Referenced by dir().

FileChooser* OcFile::fc_ [private]
FILE* OcFile::file_ [private]

Referenced by close(), file(), flush(), is_open(), OcFile(), and open().

CopyString OcFile::filename_ [private]

Referenced by get_name(), and set_name().


The documentation for this class was generated from the following files:
Generated on Mon Jun 13 08:10:32 2011 for NEURON by  doxygen 1.6.3