source: cpp/gdk/neurofactory.h @ 50

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

added the GDK (Genotype Development Kit)

File size: 775 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 _NEUROFACTORY_H_
6#define _NEUROFACTORY_H_
7
8#include "modelparts.h"
9
10class NeuroImpl;
11
12class NeuroFactory
13{
14public:
15static NeuroImpl* setImplementation(NeuroClass *nc,NeuroImpl *ni,bool deleteold=1);
16static NeuroImpl* setImplementation(const SString& classname,NeuroImpl *ni,bool deleteold=1);
17static class NeuroImpl* createNeuroImpl(Neuro *n)
18        {NeuroClass *nc=n->getClass(); if (!nc) return 0; return createNeuroImpl(nc);}
19static class NeuroImpl* createNeuroImpl(NeuroClass *nc);
20
21static int used;
22static void setImplementation();
23static void freeImplementation();
24};
25
26#endif
Note: See TracBrowser for help on using the repository browser.