ResourceFactory.h

Go to the documentation of this file.
00001 
00002 
00003 #include "Resource.h"
00004 
00005 #ifndef __RESOURCE_FACTORY_H_
00006 #define __RESOURCE_FACTORY_H_
00007 
00008 using namespace MipResources;
00009 
00010 
00011 #define MIP_REGISTER_RESOURCE(RESOURCE_NAME) \
00012 extern "C" Resource* create_resource_##RESOURCE_NAME(int argc, const char* argv[]) { \
00013  return new RESOURCE_NAME(argc, argv); \
00014 }\
00015 extern "C" void destroy_resource_##RESOURCE_NAME(Resource* p) {\
00016  delete p;\
00017 }
00018 
00019 
00020 #endif

Generated on Mon Feb 20 07:01:07 2017 for MIP by  doxygen 1.5.6