source: cpp/gdk/neurolibrary.h @ 57

Last change on this file since 57 was 5, checked in by sz, 16 years ago

added the GDK (Genotype Development Kit)

File size: 801 bytes
Line 
1// This file is a part of Framsticks GDK library.
2// Copyright (C) 2002-2006  Szymon Ulatowski.  See LICENSE.txt for details.
3// Refer to http://www.frams.alife.pl/ for further information.
4
5#ifndef _NILIBRARY_H_
6#define _NILIBRARY_H_
7
8#include "advlist.h"
9#include "param.h"
10
11class NeuroClass;
12
13class NeuroLibrary
14{
15  public:
16static NeuroLibrary staticlibrary;
17NeuroLibrary();
18~NeuroLibrary();
19AdvList classes;
20NeuroClass* findClass(const SString& classname, bool activeonly=1);
21void addStandardClasses();
22int findClassIndex(const SString& classname, bool activeonly=1);
23NeuroClass* getClass(int classindex) {return (NeuroClass*)classes(classindex);}
24int getClassCount() {return classes.size();}
25void removeClass(int i);
26void clear();
27NeuroClass *addClass(NeuroClass *cls,bool replace=1);
28};
29
30#endif
Note: See TracBrowser for help on using the repository browser.