00001 #ifndef VR_DRREALDEVICEPOOL_H
00002 #define VR_DRREALDEVICEPOOL_H
00003 #include "DRRealDevice.h"
00004
00005 namespace Spr {
00006
00007
00008
00009
00010 class SPR_DLL DRRealDevicePool: public std::vector< UTRef<DRRealDevice> >{
00011 public:
00012 DRRealDevicePool();
00013 ~DRRealDevicePool();
00014
00015 void Register(DRRealDevice* dev);
00016
00017 void Init(DVVirtualDevicePool& vpool);
00018
00019 void Print(std::ostream& o) const;
00020
00021 void Clear(){ clear(); }
00022 };
00023 inline std::ostream& operator << (std::ostream& o, const DRRealDevicePool& d){
00024 d.Print(o);
00025 return o;
00026 }
00027 }
00028
00029 #endif