NEURON
nrnmusic.h
Go to the documentation of this file.
1 #include <string>
2 
3 #if defined(NO_PYTHON_H)
4 typedef struct _object PyObject;
5 #else
6 #include <nrnwrap_Python.h>
7 #endif
8 #include <music.hh>
9 
10 class PreSyn;
11 class Gi2PreSynTable;
12 
13 // Interface which nrnmusic.so module (which mdj writes) will use
14 
15 namespace NRNMUSIC {
16 
17  class EventOutputPort : public MUSIC::EventOutputPort {
18  public:
19  EventOutputPort (MUSIC::Setup* s, std::string id)
20  : MUSIC::Port (s, id), MUSIC::EventOutputPort (s, id) { }
21 
22  // Connect a gid to a MUSIC global index in this port
23  void gid2index (int gid, int gi);
24 
25  Gi2PreSynTable* gi_table;
26  };
27 
28  class EventInputPort : public MUSIC::EventInputPort {
29  public:
30  EventInputPort (MUSIC::Setup* s, std::string id);
31 
32  // Connect a MUSIC global index to a gid in this port
33  PyObject* index2target (int gi, PyObject* target);
34 
35  Gi2PreSynTable* gi_table;
36  };
37 
38  EventOutputPort* publishEventOutput (std::string identifier);
39 
40  EventInputPort* publishEventInput (std::string identifier);
41 
42 }
Definition: netcon.h:232
Gi2PreSynTable * gi_table
Definition: nrnmusic.h:25
EventOutputPort * publishEventOutput(std::string identifier)
Definition: nrnmusic.cpp:121
_CONST char * s
Definition: system.cpp:74
EventOutputPort(MUSIC::Setup *s, std::string id)
Definition: nrnmusic.h:19
void gid2index(int gid, int gi)
Definition: nrnmusic.cpp:125
EventInputPort * publishEventInput(std::string identifier)
Definition: nrnmusic.cpp:155
Gi2PreSynTable * gi_table
Definition: nrnmusic.h:35