source: cpp/frams/neuro/neurofactory.h @ 258

Last change on this file since 258 was 197, checked in by Maciej Komosinski, 11 years ago

GDK used by developers since 1999, distributed on the web since 2002

  • Property svn:eol-style set to native
File size: 882 bytes
Line 
1// This file is a part of the Framsticks GDK.
2// Copyright (C) 1999-2014  Maciej Komosinski and 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 <frams/model/modelparts.h>
9#include <map>
10
11class NeuroImpl;
12
13class NeuroFactory
14{
15std::map<NeuroClass*,NeuroImpl*> impl;
16public:
17NeuroImpl* setImplementation(NeuroClass *nc,NeuroImpl *ni,bool deleteold=1);
18NeuroImpl* setImplementation(const SString& classname,NeuroImpl *ni,bool deleteold=1);
19NeuroImpl* getImplementation(NeuroClass *nc);
20class NeuroImpl* createNeuroImpl(Neuro *n)
21        {NeuroClass *nc=n->getClass(); if (!nc) return 0; return createNeuroImpl(nc);}
22class NeuroImpl* createNeuroImpl(NeuroClass *nc);
23
24void setStandardImplementation();
25void freeImplementation();
26void removeUnimplemented();
27};
28
29#endif
Note: See TracBrowser for help on using the repository browser.