#include <objcmd.h>
Public Member Functions | |
HocCommand (const char *) | |
HocCommand (const char *, Object *) | |
HocCommand (Object *paction) | |
virtual | ~HocCommand () |
int | execute (boolean notify=true) |
int | execute (const char *, boolean notify=true) |
int | exec_strret (char *buf, int size, boolean notify=true) |
const char * | name () |
virtual void | update (Observable *) |
virtual void | audit () |
virtual void | help () |
double | func_call (int narg) |
Object * | object () |
Object * | pyobject () |
Private Member Functions | |
void | init (const char *, Object *) |
Private Attributes | |
Object * | obj_ |
CopyString * | s_ |
Object * | po_ |
HocCommand::HocCommand | ( | const char * | cmd | ) |
HocCommand::HocCommand | ( | const char * | cmd, | |
Object * | obj | |||
) |
HocCommand::HocCommand | ( | Object * | paction | ) |
References hoc_execerror(), hoc_obj_ref(), hoc_object_name(), nil, obj_, po_, and s_.
HocCommand::~HocCommand | ( | ) | [virtual] |
References hoc_obj_unref(), Oc::notify_pointer_disconnect(), obj_, po_, and s_.
void HocCommand::audit | ( | ) | [virtual] |
References buf, hoc_audit_command(), name(), obj_, and s_.
References assert, buf, err, hoc_obj_run(), nil, Oc::notify(), obj_, and po_.
References assert, buf, err, hoc_obj_run(), Oc::notify(), nrnpy_hoccommand_exec, obj_, po_, and s_.
Referenced by nrn_fihexec().
double HocCommand::func_call | ( | int | narg | ) |
References assert, hoc_call_objfunc(), hoc_execerror(), hoc_lookup(), hoc_table_lookup(), name(), nil, obj_, po_, and s.
void HocCommand::init | ( | const char * | cmd, | |
Object * | obj | |||
) | [private] |
References nil, Oc::notify_when_freed(), obj_, po_, and s_.
Referenced by HocCommand().
const char * HocCommand::name | ( | ) |
Object* HocCommand::object | ( | ) | [inline] |
References obj_.
Object* HocCommand::pyobject | ( | ) | [inline] |
References po_.
Object* HocCommand::obj_ [private] |
Referenced by audit(), execute(), func_call(), help(), HocCommand(), init(), object(), update(), and ~HocCommand().
Object* HocCommand::po_ [private] |
Referenced by exec_strret(), execute(), func_call(), HocCommand(), init(), name(), pyobject(), and ~HocCommand().
CopyString* HocCommand::s_ [private] |
Referenced by audit(), execute(), help(), HocCommand(), init(), name(), update(), and ~HocCommand().