www.pudn.com > 200407241203328864.rar > smartptrs.h
#if !defined SMART_PTRS_H #define SMART_PTRS_H //------------------------------------ // smartptrs.h // Smart pointers to objects // (c) Bartosz Milewski, 1996 //------------------------------------ #include "recorder.h" #include "fft.h" #include "xptr.h" class PtrRecorder : public XPtr{ public: PtrRecorder (int cSamples, int cSamplePerSec) : XPtr (new RecorderM16 (cSamples, cSamplePerSec)) {} void ReInit (int bitsPerSample, int cSamples, int cSamplePerSec); }; class PtrFft : public XPtr { public: PtrFft (int points, long sampleRate) : XPtr (new Fft (points, sampleRate)) {} void ReInit (int points, long sampleRate); }; #endif