NEURON
Oc Class Reference

#include <ivoc.h>

Public Member Functions

 Oc ()
 
 Oc (Session *, const char *pname=NULL, const char **env=NULL)
 
virtual ~Oc ()
 
int run (int argc, const char **argv)
 
int run (const char *, bool show_err_mes=true)
 
int run (const std::string &, bool show_err_mes=true)
 
SymbolparseExpr (const char *, Symlist **=NULL)
 
double runExpr (Symbol *)
 
const char * name (Symbol *)
 
void notifyHocValue ()
 
void notify ()
 
void notify_attach (Observer *)
 
void notify_detach (Observer *)
 
void notify_freed (void(*pf)(void *, int))
 
void notify_when_freed (void *p, Observer *)
 
void notify_pointer_disconnect (Observer *)
 

Static Public Member Functions

static bool valid_expr (Symbol *)
 
static bool valid_stmt (const char *, Object *ob=NULL)
 
static SessiongetSession ()
 
static int getStdinSeen ()
 
static void setStdinSeen (bool i)
 
static bool setAcceptInput (bool)
 
static bool helpmode ()
 
static void helpmode (bool)
 
static void helpmode (Window *)
 
static void help (const char *)
 
static void cleanup ()
 

Static Public Attributes

static std::ostream * save_stream
 

Static Private Member Functions

static Cursorhelp_cursor ()
 

Static Private Attributes

static int refcnt_
 
static Sessionsession_
 
static HandleStdinhandleStdin_
 
static bool helpmode_
 
static Cursorhelp_cursor_
 
static Observablenotify_change_
 

Detailed Description

Definition at line 36 of file ivoc.h.

Constructor & Destructor Documentation

◆ Oc() [1/2]

Oc::Oc ( )

◆ Oc() [2/2]

Oc::Oc ( Session ,
const char *  pname = NULL,
const char **  env = NULL 
)

◆ ~Oc()

virtual Oc::~Oc ( )
virtual

Member Function Documentation

◆ cleanup()

static void Oc::cleanup ( )
static

◆ getSession()

static Session* Oc::getSession ( )
static

◆ getStdinSeen()

static int Oc::getStdinSeen ( )
inlinestatic

Definition at line 63 of file ivoc.h.

◆ help()

static void Oc::help ( const char *  )
static

◆ help_cursor()

static Cursor* Oc::help_cursor ( )
staticprivate

◆ helpmode() [1/3]

static bool Oc::helpmode ( )
inlinestatic

Definition at line 70 of file ivoc.h.

◆ helpmode() [2/3]

static void Oc::helpmode ( bool  )
static

◆ helpmode() [3/3]

static void Oc::helpmode ( Window )
static

◆ name()

const char* Oc::name ( Symbol )

◆ notify()

void Oc::notify ( )

◆ notify_attach()

void Oc::notify_attach ( Observer )

◆ notify_detach()

void Oc::notify_detach ( Observer )

◆ notify_freed()

void Oc::notify_freed ( void(*)(void *, int)  pf)

◆ notify_pointer_disconnect()

void Oc::notify_pointer_disconnect ( Observer )

◆ notify_when_freed()

void Oc::notify_when_freed ( void *  p,
Observer  
)

◆ notifyHocValue()

void Oc::notifyHocValue ( )

◆ parseExpr()

Symbol* Oc::parseExpr ( const char *  ,
Symlist **  = NULL 
)

◆ run() [1/3]

int Oc::run ( const char *  ,
bool  show_err_mes = true 
)

◆ run() [2/3]

int Oc::run ( const std::string &  ,
bool  show_err_mes = true 
)

◆ run() [3/3]

int Oc::run ( int  argc,
const char **  argv 
)

◆ runExpr()

double Oc::runExpr ( Symbol )

◆ setAcceptInput()

static bool Oc::setAcceptInput ( bool  )
static

◆ setStdinSeen()

static void Oc::setStdinSeen ( bool  i)
inlinestatic

Definition at line 66 of file ivoc.h.

◆ valid_expr()

static bool Oc::valid_expr ( Symbol )
static

◆ valid_stmt()

static bool Oc::valid_stmt ( const char *  ,
Object ob = NULL 
)
static

Member Data Documentation

◆ handleStdin_

HandleStdin* Oc::handleStdin_
staticprivate

Definition at line 83 of file ivoc.h.

◆ help_cursor_

Cursor* Oc::help_cursor_
staticprivate

Definition at line 86 of file ivoc.h.

◆ helpmode_

bool Oc::helpmode_
staticprivate

Definition at line 84 of file ivoc.h.

◆ notify_change_

Observable* Oc::notify_change_
staticprivate

Definition at line 87 of file ivoc.h.

◆ refcnt_

int Oc::refcnt_
staticprivate

Definition at line 81 of file ivoc.h.

◆ save_stream

std::ostream* Oc::save_stream
static

Definition at line 77 of file ivoc.h.

◆ session_

Session* Oc::session_
staticprivate

Definition at line 82 of file ivoc.h.


The documentation for this class was generated from the following file: