NEURON
HocCommand Class Reference

#include <objcmd.h>

Inheritance diagram for HocCommand:
Observer

Public Member Functions

 HocCommand (const char *)
 
 HocCommand (const char *, Object *)
 
 HocCommand (Object *paction)
 
virtual ~HocCommand ()
 
int execute (bool notify=true)
 
int execute (const char *, bool notify=true)
 
int exec_strret (char *buf, int size, bool notify=true)
 
const char * name ()
 
virtual void update (Observable *)
 
virtual void audit ()
 
virtual void help ()
 
double func_call (int narg, int *perr=NULL)
 
Objectobject ()
 
Objectpyobject ()
 
- Public Member Functions inherited from Observer
virtual ~Observer ()=default
 
virtual void disconnect (Observable *)
 

Private Member Functions

void init (const char *, Object *)
 

Private Attributes

Objectobj_
 
std::unique_ptr< std::string > s_ {}
 
Objectpo_
 

Additional Inherited Members

- Protected Member Functions inherited from Observer
 Observer ()=default
 

Detailed Description

Definition at line 15 of file objcmd.h.

Constructor & Destructor Documentation

◆ HocCommand() [1/3]

HocCommand::HocCommand ( const char *  cmd)

Definition at line 19 of file objcmd.cpp.

◆ HocCommand() [2/3]

HocCommand::HocCommand ( const char *  cmd,
Object obj 
)

Definition at line 22 of file objcmd.cpp.

◆ HocCommand() [3/3]

HocCommand::HocCommand ( Object paction)

Definition at line 26 of file objcmd.cpp.

◆ ~HocCommand()

HocCommand::~HocCommand ( )
virtual

Definition at line 51 of file objcmd.cpp.

Member Function Documentation

◆ audit()

void HocCommand::audit ( )
virtual

Definition at line 81 of file objcmd.cpp.

◆ exec_strret()

int HocCommand::exec_strret ( char *  buf,
int  size,
bool  notify = true 
)

Definition at line 115 of file objcmd.cpp.

◆ execute() [1/2]

int HocCommand::execute ( bool  notify = true)

Definition at line 94 of file objcmd.cpp.

◆ execute() [2/2]

int HocCommand::execute ( const char *  s,
bool  notify = true 
)

Definition at line 126 of file objcmd.cpp.

◆ func_call()

double HocCommand::func_call ( int  narg,
int *  perr = NULL 
)

Definition at line 140 of file objcmd.cpp.

◆ help()

void HocCommand::help ( )
virtual

Definition at line 60 of file objcmd.cpp.

◆ init()

void HocCommand::init ( const char *  cmd,
Object obj 
)
private

Definition at line 37 of file objcmd.cpp.

◆ name()

const char * HocCommand::name ( )

Definition at line 73 of file objcmd.cpp.

◆ object()

Object* HocCommand::object ( )
inline

Definition at line 30 of file objcmd.h.

◆ pyobject()

Object* HocCommand::pyobject ( )
inline

Definition at line 33 of file objcmd.h.

◆ update()

void HocCommand::update ( Observable )
virtual

Reimplemented from Observer.

Definition at line 46 of file objcmd.cpp.

Member Data Documentation

◆ obj_

Object* HocCommand::obj_
private

Definition at line 41 of file objcmd.h.

◆ po_

Object* HocCommand::po_
private

Definition at line 43 of file objcmd.h.

◆ s_

std::unique_ptr<std::string> HocCommand::s_ {}
private

Definition at line 42 of file objcmd.h.


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