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

Last change on this file since 564 was 286, checked in by Maciej Komosinski, 10 years ago

Updated headers

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
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.