source: cpp/gdk/neurofactory.h @ 100

Last change on this file since 100 was 66, checked in by Maciej Komosinski, 14 years ago

set 'eol-style' to 'native'

  • Property svn:eol-style set to native
File size: 779 bytes
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 _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.