Equalizer  1.2.1
seq/objectFactory.h
00001 
00002 /* Copyright (c) 2011, Stefan Eilemann <eile@eyescale.ch> 
00003  *
00004  * This library is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Lesser General Public License version 2.1 as published
00006  * by the Free Software Foundation.
00007  *  
00008  * This library is distributed in the hope that it will be useful, but WITHOUT
00009  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00010  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00011  * details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this library; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  */
00017 
00018 #ifndef EQSEQUEL_OBJECTFACTORY_H
00019 #define EQSEQUEL_OBJECTFACTORY_H
00020 
00021 #include <seq/types.h>
00022 #include <co/object.h>       // deleted inline
00023 
00024 namespace seq
00025 {
00027     class ObjectFactory
00028     {
00029     public:
00031         ObjectFactory(){}
00032 
00034         virtual ~ObjectFactory(){}
00035 
00037         virtual eq::Config* getConfig() = 0;
00038 
00043         virtual co::Object* createObject( const uint32_t type ) = 0;
00044 
00046         virtual void destroyObject( co::Object* object, const uint32_t type )
00047             { delete object; }
00048     };
00049 }
00050 #endif // EQSEQUEL_OBJECTFACTORY_H
Generated on Fri Jun 8 2012 15:44:31 for Equalizer 1.2.1 by  doxygen 1.8.0