source: cpp/frams/neuro/neurolibparam.h @ 235

Last change on this file since 235 was 197, checked in by Maciej Komosinski, 11 years ago

GDK used by developers since 1999, distributed on the web since 2002

  • Property svn:eol-style set to native
File size: 1.5 KB
RevLine 
[138]1// This file is a part of the Framsticks GDK.
[197]2// Copyright (C) 1999-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
[138]3// Refer to http://www.framsticks.com/ for further information.
4
5#ifndef _NEUROLIBPARAM_H_
6#define _NEUROLIBPARAM_H_
7
8#include <frams/param/mutparamiface.h>
9#include <frams/model/modelparts.h>
10
11class NeuroLibParam: public MutableParamInterface
12{
13const char* mygroup;
14const char* myname;
15const char* myprefix;
16CallbackNode *anode,*dnode;
17
18  public:
19NeuroLibParam(const char* gr=0, const char* name=0, const char* pref=0);
20~NeuroLibParam();
21
22#define STATRICKCLASS NeuroLibParam
23VIRTCALLBACKDEF(neuroclassAdded);
24VIRTCALLBACKDEF(neuroclassRemoved);
25#undef STATRICKCLASS
26
27int getGroupCount() {return 1;}
28int getPropCount()  {return Neuro::getClassCount();}
29
30const char* getName() {return myname;}
31const char *grname(int gi) {return (gi==0)?mygroup:0;}
32
33const char *id(int i);
34const char *name(int i);
35const char *help(int i);
36const char *type(int i) {return "d 0 1";}
37int flags(int i)        {return 0;}
38int group(int i)        {return 0;}
39int grmember(int gi,int n);
40void call(int i,ExtValue* args,ExtValue *ret) {}
41
42SString getString(int i) {return SString();}
43double getDouble(int) {return 0;}
44ExtObject getObject(int i) {return ExtObject();}
45ExtValue getExtValue(int i) {return ExtValue();}
46int setDouble(int i, double) {return 0;}
47int setString(int i, const SString &v) {return 0;}
48int setObject(int i, const ExtObject &v) {return 0;}
49int setExtValue(int i, const ExtValue &v) {return 0;}
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.