00001 /** 00002 * Header file for the GTCamSelector 00003 * @file: GTCamSelector.h 00004 * @author: Matthias Meyer <robocup@ja-me.de> 00005 */ 00006 #ifndef __GTCAMSELECTOR_h_ 00007 #define __GTCAMSELECTOR_h_ 00008 00009 #include "Tools/Module/ModuleSelector.h" 00010 #include "GTCamRaw.h" 00011 00012 /** 00013 * The GTCamSelector Class 00014 */ 00015 class GTCamSelector: public ModuleSelector, public GTCamInterfaces 00016 { 00017 public: 00018 /** 00019 * Default constructor 00020 */ 00021 GTCamSelector(ModuleHandler &handler,const GTCamInterfaces& interfaces) 00022 : ModuleSelector(SolutionRequest::gtCam), 00023 GTCamInterfaces(interfaces) 00024 { 00025 handler.setModuleSelector(SolutionRequest::gtCam, this); 00026 } 00027 00028 /** 00029 * Create the selected Solution 00030 */ 00031 virtual Module* createSolution(SolutionRequest::ModuleSolutionID id) 00032 { 00033 switch(id) 00034 { 00035 // The GTCam Raw copy solution 00036 case SolutionRequest::gtCamRaw: 00037 return new GTCamRaw(*this); 00038 00039 // Return 0 by default 00040 default: 00041 return 0; 00042 } 00043 } 00044 }; 00045 00046 #endif 00047
1.3.6