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 []
 

Function Documentation

◆ f_aopen()

static double f_aopen ( void v)
static

Definition at line 96 of file ocfile.cpp.

◆ f_chooser()

static double f_chooser ( void v)
static

Definition at line 197 of file ocfile.cpp.

◆ f_close()

static double f_close ( void v)
static

Definition at line 234 of file ocfile.cpp.

◆ f_cons()

static void* f_cons ( Object )
static

Definition at line 280 of file ocfile.cpp.

◆ f_destruct()

static void f_destruct ( void v)
static

Definition at line 288 of file ocfile.cpp.

◆ f_dir()

static const char** f_dir ( void v)
static

Definition at line 190 of file ocfile.cpp.

◆ f_eof()

static double f_eof ( void v)
static

Definition at line 164 of file ocfile.cpp.

◆ f_flush()

static double f_flush ( void v)
static

Definition at line 174 of file ocfile.cpp.

◆ f_get_name()

static const char** f_get_name ( void v)
static

Definition at line 180 of file ocfile.cpp.

◆ f_gets()

static double f_gets ( void v)
static

Definition at line 135 of file ocfile.cpp.

◆ f_is_open()

static double f_is_open ( void v)
static

Definition at line 169 of file ocfile.cpp.

◆ f_mktemp()

static double f_mktemp ( void v)
static

Definition at line 154 of file ocfile.cpp.

◆ f_printf()

static double f_printf ( void v)
static

Definition at line 109 of file ocfile.cpp.

◆ f_ropen()

static double f_ropen ( void v)
static

Definition at line 80 of file ocfile.cpp.

◆ f_scanstr()

static double f_scanstr ( void v)
static

Definition at line 122 of file ocfile.cpp.

◆ f_scanvar()

static double f_scanvar ( void v)
static

Definition at line 117 of file ocfile.cpp.

◆ f_seek()

static double f_seek ( void v)
static

Definition at line 258 of file ocfile.cpp.

◆ f_tell()

static double f_tell ( void v)
static

Definition at line 273 of file ocfile.cpp.

◆ f_unlink()

static double f_unlink ( void v)
static

Definition at line 159 of file ocfile.cpp.

◆ f_vread()

static double f_vread ( void v)
static

Definition at line 249 of file ocfile.cpp.

◆ f_vwrite()

static double f_vwrite ( void v)
static

Definition at line 240 of file ocfile.cpp.

◆ f_wopen()

static double f_wopen ( void v)
static

Definition at line 88 of file ocfile.cpp.

◆ hoc_obj_file_arg()

FILE* hoc_obj_file_arg ( int  i)

Definition at line 56 of file ocfile.cpp.

◆ isDirExist()

bool isDirExist ( const std::string &  path)

Definition at line 557 of file ocfile.cpp.

◆ ivoc_get_temp_file()

char * ivoc_get_temp_file ( )

Definition at line 3716 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 576 of file ocfile.cpp.

◆ OcFile_reg()

void OcFile_reg ( )

Definition at line 320 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_tell(void *v)
Definition: ocfile.cpp:273
static double f_scanvar(void *v)
Definition: ocfile.cpp:117
static double f_vwrite(void *v)
Definition: ocfile.cpp:240
static double f_wopen(void *v)
Definition: ocfile.cpp:88
static double f_is_open(void *v)
Definition: ocfile.cpp:169
static double f_mktemp(void *v)
Definition: ocfile.cpp:154
static double f_aopen(void *v)
Definition: ocfile.cpp:96
static double f_eof(void *v)
Definition: ocfile.cpp:164
static double f_seek(void *v)
Definition: ocfile.cpp:258
static double f_unlink(void *v)
Definition: ocfile.cpp:159
static double f_gets(void *v)
Definition: ocfile.cpp:135
static double f_chooser(void *v)
Definition: ocfile.cpp:197
static double f_ropen(void *v)
Definition: ocfile.cpp:80
static double f_vread(void *v)
Definition: ocfile.cpp:249
static double f_close(void *v)
Definition: ocfile.cpp:234
static double f_printf(void *v)
Definition: ocfile.cpp:109
static double f_scanstr(void *v)
Definition: ocfile.cpp:122
static double f_flush(void *v)
Definition: ocfile.cpp:174

Definition at line 292 of file ocfile.cpp.

◆ f_retstr_members

Member_ret_str_func f_retstr_members[]
static
Initial value:
= {
"getname", f_get_name,
"dir", f_dir,
0,0
}
static const char ** f_get_name(void *v)
Definition: ocfile.cpp:180
static const char ** f_dir(void *v)
Definition: ocfile.cpp:190

Definition at line 314 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

Definition at line 41 of file code.cpp.

◆ nrnpy_gui_helper_

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

Definition at line 13 of file xmenu.cpp.

◆ nrnpy_object_to_double_

double(* nrnpy_object_to_double_) (Object *)

Definition at line 14 of file xmenu.cpp.