Collage  0.6.1
objectFactory.h
00001 
00002 /* Copyright (c) 2011-2012, 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 CO_OBJECTFACTORY_H
00019 #define CO_OBJECTFACTORY_H
00020 
00021 #include <co/object.h>       // deleted inline
00022 
00023 namespace co
00024 {
00025     enum ObjectType
00026     {
00027         OBJECTTYPE_NONE,
00028         OBJECTTYPE_CUSTOM = 16
00029     };
00030 
00032     class ObjectFactory
00033     {
00034     public:
00036         ObjectFactory(){}
00037 
00039         virtual ~ObjectFactory(){}
00040 
00045         virtual co::Object* createObject( const uint32_t type )
00046             { LBUNIMPLEMENTED; return 0; }
00047 
00049         virtual void destroyObject( co::Object* object, const uint32_t type )
00050             { delete object; }
00051     };
00052 }
00053 #endif // CO_OBJECTFACTORY_H
Generated on Mon Nov 26 2012 14:41:44 for Collage 0.6.1 by  doxygen 1.7.6.1