NEURON
ocfile.cpp File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include <stdlib.h>
#include <InterViews/resource.h>
#include "nrnmpi.h"
#include "oc2iv.h"
#include "classreg.h"
#include "ocfile.h"
#include "nrnfilewrap.h"
#include <iostream>
#include <sys/stat.h>
#include <errno.h>
#include "gui-redirect.h"
#include "hocstr.h"

Go to the source code of this file.

Functions

char * ivoc_get_temp_file ()
 
static int ivoc_unlink (const char *)
 
FILE * hoc_obj_file_arg (int i)
 
static double f_ropen (void *v)
 
static double f_wopen (void *v)
 
static double f_aopen (void *v)
 
static double f_printf (void *v)
 
static double f_scanvar (void *v)
 
static double f_scanstr (void *v)
 
static double f_gets (void *v)
 
static double f_mktemp (void *v)
 
static double f_unlink (void *v)
 
static double f_eof (void *v)
 
static double f_is_open (void *v)
 
static double f_flush (void *v)
 
static const char ** f_get_name (void *v)
 
static const char ** f_dir (void *v)
 
static double f_chooser (void *v)
 
static double f_close (void *v)
 
static double f_vwrite (void *v)
 
static double f_vread (void *v)
 
static double f_seek (void *v)
 
static double f_tell (void *v)
 
static voidf_cons (Object *)
 
static void f_destruct (void *v)
 
void OcFile_reg ()
 
bool isDirExist (const std::string &path)
 
bool makePath (const std::string &path)
 

Variables

int hoc_return_type_code
 
Object **(* nrnpy_gui_helper_ )(const char *name, Object *obj)
 
double(* nrnpy_object_to_double_ )(Object *)
 
static Symbolfile_class_sym_
 
Member_func f_members []
 
static Member_ret_str_func f_retstr_members [] = {"getname", f_get_name, "dir", f_dir, 0, 0}
 

Function Documentation

◆ f_aopen()

static double f_aopen ( void v)
static

Definition at line 97 of file ocfile.cpp.

◆ f_chooser()

static double f_chooser ( void v)
static

Definition at line 200 of file ocfile.cpp.

◆ f_close()

static double f_close ( void v)
static

Definition at line 237 of file ocfile.cpp.

◆ f_cons()

static void* f_cons ( Object )
static

Definition at line 281 of file ocfile.cpp.

◆ f_destruct()

static void f_destruct ( void v)
static

Definition at line 289 of file ocfile.cpp.

◆ f_dir()

static const char** f_dir ( void v)
static

Definition at line 193 of file ocfile.cpp.

◆ f_eof()

static double f_eof ( void v)
static

Definition at line 167 of file ocfile.cpp.

◆ f_flush()

static double f_flush ( void v)
static

Definition at line 177 of file ocfile.cpp.

◆ f_get_name()

static const char** f_get_name ( void v)
static

Definition at line 183 of file ocfile.cpp.

◆ f_gets()

static double f_gets ( void v)
static

Definition at line 138 of file ocfile.cpp.

◆ f_is_open()

static double f_is_open ( void v)
static

Definition at line 172 of file ocfile.cpp.

◆ f_mktemp()

static double f_mktemp ( void v)
static

Definition at line 157 of file ocfile.cpp.

◆ f_printf()

static double f_printf ( void v)
static

Definition at line 112 of file ocfile.cpp.

◆ f_ropen()

static double f_ropen ( void v)
static

Definition at line 81 of file ocfile.cpp.

◆ f_scanstr()

static double f_scanstr ( void v)
static

Definition at line 125 of file ocfile.cpp.

◆ f_scanvar()

static double f_scanvar ( void v)
static

Definition at line 120 of file ocfile.cpp.

◆ f_seek()

static double f_seek ( void v)
static

Definition at line 261 of file ocfile.cpp.

◆ f_tell()

static double f_tell ( void v)
static

Definition at line 275 of file ocfile.cpp.

◆ f_unlink()

static double f_unlink ( void v)
static

Definition at line 162 of file ocfile.cpp.

◆ f_vread()

static double f_vread ( void v)
static

Definition at line 252 of file ocfile.cpp.

◆ f_vwrite()

static double f_vwrite ( void v)
static

Definition at line 243 of file ocfile.cpp.

◆ f_wopen()

static double f_wopen ( void v)
static

Definition at line 89 of file ocfile.cpp.

◆ isDirExist()

bool isDirExist ( const std::string &  path)

Definition at line 545 of file ocfile.cpp.

◆ ivoc_get_temp_file()

char * ivoc_get_temp_file ( )

Definition at line 3428 of file pwman.cpp.

◆ ivoc_unlink()

int ivoc_unlink ( const char *  s)
static

Definition at line 49 of file ocfile.cpp.

◆ makePath()

bool makePath ( const std::string &  path)

Definition at line 561 of file ocfile.cpp.

◆ OcFile_reg()

void OcFile_reg ( )

Definition at line 303 of file ocfile.cpp.

Variable Documentation

◆ f_members

Member_func f_members[]
Initial value:
= {"ropen", f_ropen, "wopen", f_wopen, "aopen", f_aopen,
"printf", f_printf, "scanvar", f_scanvar, "scanstr", f_scanstr,
"gets", f_gets, "eof", f_eof, "isopen", f_is_open,
"chooser", f_chooser, "close", f_close, "vwrite", f_vwrite,
"vread", f_vread, "seek", f_seek, "tell", f_tell,
"mktemp", f_mktemp, "unlink", f_unlink, "flush", f_flush,
0, 0}
static double f_printf(void *v)
Definition: ocfile.cpp:112
static double f_scanstr(void *v)
Definition: ocfile.cpp:125
static double f_chooser(void *v)
Definition: ocfile.cpp:200
static double f_scanvar(void *v)
Definition: ocfile.cpp:120
static double f_is_open(void *v)
Definition: ocfile.cpp:172
static double f_unlink(void *v)
Definition: ocfile.cpp:162
static double f_vwrite(void *v)
Definition: ocfile.cpp:243
static double f_close(void *v)
Definition: ocfile.cpp:237
static double f_ropen(void *v)
Definition: ocfile.cpp:81
static double f_seek(void *v)
Definition: ocfile.cpp:261
static double f_wopen(void *v)
Definition: ocfile.cpp:89
static double f_eof(void *v)
Definition: ocfile.cpp:167
static double f_aopen(void *v)
Definition: ocfile.cpp:97
static double f_tell(void *v)
Definition: ocfile.cpp:275
static double f_flush(void *v)
Definition: ocfile.cpp:177
static double f_vread(void *v)
Definition: ocfile.cpp:252
static double f_gets(void *v)
Definition: ocfile.cpp:138
static double f_mktemp(void *v)
Definition: ocfile.cpp:157

Definition at line 293 of file ocfile.cpp.

◆ f_retstr_members

Member_ret_str_func f_retstr_members[] = {"getname", f_get_name, "dir", f_dir, 0, 0}
static

Definition at line 301 of file ocfile.cpp.

◆ file_class_sym_

Symbol* file_class_sym_
static

Definition at line 46 of file ocfile.cpp.

◆ hoc_return_type_code

int hoc_return_type_code
extern

Definition at line 42 of file code.cpp.

◆ nrnpy_gui_helper_

Object**(* nrnpy_gui_helper_) (const char *name, Object *obj) ( const char *  name,
Object obj 
)
extern

Definition at line 13 of file xmenu.cpp.

◆ nrnpy_object_to_double_

double(* nrnpy_object_to_double_) (Object *) ( Object )
extern

Definition at line 14 of file xmenu.cpp.