source: cpp/frams/neuro/neurolibrary.h @ 1277

Last change on this file since 1277 was 790, checked in by Maciej Komosinski, 7 years ago

Code formatting

  • Property svn:eol-style set to native
File size: 864 bytes
RevLine 
[286]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.
[109]4
5#ifndef _NILIBRARY_H_
6#define _NILIBRARY_H_
7
8#include <frams/util/advlist.h>
9#include <frams/param/param.h>
10
11class NeuroClass;
12
13class NeuroLibrary
14{
[790]15public:
16        static NeuroLibrary staticlibrary;
17        NeuroLibrary();
18        ~NeuroLibrary();
19        AdvList classes;
20        NeuroClass* findClass(const SString& classname, bool activeonly = 1);
21        void addStandardClasses();
22        int findClassIndex(const SString& classname, bool activeonly = 1);
23        NeuroClass* getClass(int classindex) { return (NeuroClass*)classes(classindex); }
24        SString getClassName(int classindex);
25        int getClassCount() { return classes.size(); }
26        void removeClass(int i);
27        void clear();
28        NeuroClass *addClass(NeuroClass *cls, bool replace = 1);
[109]29};
30
31#endif
Note: See TracBrowser for help on using the repository browser.