Factory.hh

00001 //********************************************************************
00002 //*** ResourcePool/TaskRunner/Factory.hh
00003 //*** Copyright (c) 2003-2009 by Markus Winand <mws@fatalmind.com>
00004 //*** $Id: Factory.hh,v 1.6 2009-03-02 14:16:45 mws Exp $
00005 //********************************************************************
00006 
00007 #ifndef RESOURCEPOOL_TASKRUNNER_FACTORY_HH
00008 #define RESOURCEPOOL_TASKRUNNER_FACTORY_HH
00009 
00010 #ifndef RESOURCEPOOL_TASKRUNNER_RESOURCE_HH
00011 #include "Resource.hh"
00012 #endif
00013 
00014 #include "mm/gc_ptr.hh"
00015 #include "ResourcePool/ResourcePoolEventObserver.hh"
00016 
00017 namespace fatalmind {
00018 namespace TaskRunnerPoolInternals {
00019 
00020 class Factory {
00021     public:
00022         Factory();
00023         Resource* create_resource() const;  
00024         gc_ptr<ResourcePoolEventObserver> getEventObserver() const;
00025     private:
00026         gc_ptr<ResourcePoolEventObserver> observer;
00027 };
00028 
00029 }
00030 } // namespace fatalmind
00031 
00032 #endif

Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3