source: cpp/gdk/neuroclsobject.h @ 68

Last change on this file since 68 was 68, checked in by Maciej Komosinski, 13 years ago

added missing sources; updated sources for compatibility with vs2008 and added project files

File size: 1.2 KB
Line 
1// This file is a part of the Framsticks GDK library.
2// Copyright (C) 2002-2011  Szymon Ulatowski.  See LICENSE.txt for details.
3// Refer to http://www.framsticks.com/ for further information.
4
5#ifndef _NEUROCLSOBJECT_H_
6#define _NEUROCLSOBJECT_H_
7
8#include "modelparts.h"
9#include "neurolibrary.h"
10#include "extvalue.h"
11
12extern ParamEntry neuroclass_paramtab[];
13
14class NeuroClassLibObject
15{
16NeuroLibrary& lib() {return NeuroLibrary::staticlibrary;}
17  public:
18Param param,classparam;
19NeuroClass invalid;
20NeuroClass *cls;
21long current;
22NeuroClassLibObject();
23void selectClass(int i);
24static int* convertVectorData(const SString& s);
25#define STATRICKCLASS NeuroClassLibObject
26PARAMSETDEF(current);
27PARAMGETDEF(count) {arg1->setInt(lib().getClassCount());}
28PARAMPROCDEF(p_findclass);
29PARAMPROCDEF(p_getclass);
30#undef STATRICKCLASS
31};
32
33class NeuroClassExt: public NeuroClass
34{
35  public:
36#define STATRICKCLASS NeuroClassExt
37PARAMSETDEF(glyph);
38PARAMGETDEF(glyph);
39PARAMGETDEF(props);
40PARAMGETDEF(summary) {arg1->setString(getSummary());}
41#undef STATRICKCLASS
42static void makeStaticObject(ExtValue *ret,NeuroClass *cl);
43};
44
45#endif
46
47
48
49
50
51
52
Note: See TracBrowser for help on using the repository browser.