NEURON
ocfile.cpp File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include <stdlib.h>
#include "nrnmpi.h"
#include "oc2iv.h"
#include "code.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 *)
 
std::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 void * f_cons (Object *)
 
static void f_destruct (void *v)
 
void OcFile_reg ()
 
bool isDirExist (const std::string &path)
 
bool makePath (const std::string &path)
 

Variables

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 88 of file ocfile.cpp.

◆ f_chooser()

static double f_chooser ( void *  v)
static

Definition at line 185 of file ocfile.cpp.

◆ f_close()

static double f_close ( void *  v)
static

Definition at line 222 of file ocfile.cpp.

◆ f_cons()

static void* f_cons ( Object )
static

Definition at line 266 of file ocfile.cpp.

◆ f_destruct()

static void f_destruct ( void *  v)
static

Definition at line 274 of file ocfile.cpp.

◆ f_dir()

static const char** f_dir ( void *  v)
static

Definition at line 178 of file ocfile.cpp.

◆ f_eof()

static double f_eof ( void *  v)
static

Definition at line 152 of file ocfile.cpp.

◆ f_flush()

static double f_flush ( void *  v)
static

Definition at line 162 of file ocfile.cpp.

◆ f_get_name()

static const char** f_get_name ( void *  v)
static

Definition at line 168 of file ocfile.cpp.

◆ f_gets()

static double f_gets ( void *  v)
static

Definition at line 129 of file ocfile.cpp.

◆ f_is_open()

static double f_is_open ( void *  v)
static

Definition at line 157 of file ocfile.cpp.

◆ f_mktemp()

static double f_mktemp ( void *  v)
static

Definition at line 142 of file ocfile.cpp.

◆ f_printf()

static double f_printf ( void *  v)
static

Definition at line 103 of file ocfile.cpp.

◆ f_ropen()

static double f_ropen ( void *  v)
static

Definition at line 72 of file ocfile.cpp.

◆ f_scanstr()

static double f_scanstr ( void *  v)
static

Definition at line 116 of file ocfile.cpp.

◆ f_scanvar()

static double f_scanvar ( void *  v)
static

Definition at line 111 of file ocfile.cpp.

◆ f_seek()

static double f_seek ( void *  v)
static

Definition at line 246 of file ocfile.cpp.

◆ f_tell()

static double f_tell ( void *  v)
static

Definition at line 260 of file ocfile.cpp.

◆ f_unlink()

static double f_unlink ( void *  v)
static

Definition at line 147 of file ocfile.cpp.

◆ f_vread()

static double f_vread ( void *  v)
static

Definition at line 237 of file ocfile.cpp.

◆ f_vwrite()

static double f_vwrite ( void *  v)
static

Definition at line 228 of file ocfile.cpp.

◆ f_wopen()

static double f_wopen ( void *  v)
static

Definition at line 80 of file ocfile.cpp.

◆ isDirExist()

bool isDirExist ( const std::string &  path)

Definition at line 523 of file ocfile.cpp.

◆ ivoc_get_temp_file()

char * ivoc_get_temp_file ( )

Definition at line 3338 of file pwman.cpp.

◆ ivoc_unlink()

int ivoc_unlink ( const char *  s)
static

Definition at line 42 of file ocfile.cpp.

◆ makePath()

bool makePath ( const std::string &  path)

Definition at line 539 of file ocfile.cpp.

◆ OcFile_reg()

void OcFile_reg ( )

Definition at line 302 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},
{nullptr, nullptr}}
static double f_printf(void *v)
Definition: ocfile.cpp:103
static double f_scanstr(void *v)
Definition: ocfile.cpp:116
static double f_chooser(void *v)
Definition: ocfile.cpp:185
static double f_scanvar(void *v)
Definition: ocfile.cpp:111
static double f_is_open(void *v)
Definition: ocfile.cpp:157
static double f_unlink(void *v)
Definition: ocfile.cpp:147
static double f_vwrite(void *v)
Definition: ocfile.cpp:228
static double f_close(void *v)
Definition: ocfile.cpp:222
static double f_ropen(void *v)
Definition: ocfile.cpp:72
static double f_seek(void *v)
Definition: ocfile.cpp:246
static double f_wopen(void *v)
Definition: ocfile.cpp:80
static double f_eof(void *v)
Definition: ocfile.cpp:152
static double f_aopen(void *v)
Definition: ocfile.cpp:88
static double f_tell(void *v)
Definition: ocfile.cpp:260
static double f_flush(void *v)
Definition: ocfile.cpp:162
static double f_vread(void *v)
Definition: ocfile.cpp:237
static double f_gets(void *v)
Definition: ocfile.cpp:129
static double f_mktemp(void *v)
Definition: ocfile.cpp:142

Definition at line 278 of file ocfile.cpp.

◆ f_retstr_members

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

Definition at line 298 of file ocfile.cpp.

◆ file_class_sym_

Symbol* file_class_sym_
static

Definition at line 39 of file ocfile.cpp.