00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef RESOURCEPOOL_EXECUTE_HH
00025 #define RESOURCEPOOL_EXECUTE_HH
00026
00027 #ifndef RESOURCEPOOL_EXECUTE_HH
00028 #include "ExecuteFwd.hh"
00029 #endif
00030
00031 #ifndef RESOURCEPOOL_COMMAND_HH
00032 #include "Command.hh"
00033 #endif
00034
00035 #ifndef RESOURCEPOOL_RESOURCEPOOLINTERFACE_HH
00036 #include "ResourcePoolInterface.hh"
00037 #endif
00038
00039 #ifndef RESOURCEPOOL_RESOURCEPOOLOPTIONS_HH
00040 #include "ResourcePoolOptions.hh"
00041 #endif
00042
00043 namespace fatalmind {
00044
00045 template<class Type>
00046 class _RPExecute: public ResourcePoolInterface<Type> {
00047 typedef ResourcePoolInterface<Type> super;
00048 using super::get;
00049 public:
00050 virtual void execute(Command<Type>&);
00051
00052 protected:
00053 _RPExecute();
00054 virtual ~_RPExecute() {};
00055
00056 virtual const ResourcePoolOptions& getOptions() = 0;
00057 };
00058
00059 }
00060 #endif