Last change
on this file since 104 was
104,
checked in by sz, 12 years ago
|
introducing object de/serialization - see serialtest.cpp
the core GDK classes can be now used in multiple threads (ifdef MULTITHREADED)
|
-
Property svn:eol-style set to
native
|
File size:
856 bytes
|
Rev | Line | |
---|
[64] | 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. |
---|
[5] | 4 | |
---|
| 5 | #ifndef _NEUROFACTORY_H_ |
---|
| 6 | #define _NEUROFACTORY_H_ |
---|
| 7 | |
---|
| 8 | #include "modelparts.h" |
---|
[104] | 9 | #include <map> |
---|
[5] | 10 | |
---|
| 11 | class NeuroImpl; |
---|
| 12 | |
---|
| 13 | class NeuroFactory |
---|
| 14 | { |
---|
[104] | 15 | std::map<NeuroClass*,NeuroImpl*> impl; |
---|
[5] | 16 | public: |
---|
[104] | 17 | NeuroImpl* setImplementation(NeuroClass *nc,NeuroImpl *ni,bool deleteold=1); |
---|
| 18 | NeuroImpl* setImplementation(const SString& classname,NeuroImpl *ni,bool deleteold=1); |
---|
| 19 | NeuroImpl* getImplementation(NeuroClass *nc); |
---|
| 20 | class NeuroImpl* createNeuroImpl(Neuro *n) |
---|
[5] | 21 | {NeuroClass *nc=n->getClass(); if (!nc) return 0; return createNeuroImpl(nc);} |
---|
[104] | 22 | class NeuroImpl* createNeuroImpl(NeuroClass *nc); |
---|
[5] | 23 | |
---|
[104] | 24 | void setStandardImplementation(); |
---|
| 25 | void freeImplementation(); |
---|
| 26 | void removeUnimplemented(); |
---|
[5] | 27 | }; |
---|
| 28 | |
---|
| 29 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.