Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

VrMUXBuffer.h

Go to the documentation of this file.
00001 /* -*- Mode: c++ -*- 00002 * 00003 * Copyright 1997 Massachusetts Institute of Technology 00004 * 00005 * Permission to use, copy, modify, distribute, and sell this software and its 00006 * documentation for any purpose is hereby granted without fee, provided that 00007 * the above copyright notice appear in all copies and that both that 00008 * copyright notice and this permission notice appear in supporting 00009 * documentation, and that the name of M.I.T. not be used in advertising or 00010 * publicity pertaining to distribution of the software without specific, 00011 * written prior permission. M.I.T. makes no representations about the 00012 * suitability of this software for any purpose. It is provided "as is" 00013 * without express or implied warranty. 00014 * 00015 */ 00016 00017 #ifndef _VRGUPPIBUFFER_H_ 00018 #define _VRGUPPIBUFFER_H_ 00019 00020 #include <VrSigProc.h> 00021 #include <VrConnect.h> 00022 #include <VrBuffer.h> 00023 #include <VrMUX.h> 00024 00025 template<class T> class VrGuppiBuffer : public VrBuffer { 00026 private: 00027 int guppi_fd; 00028 //called from a downstream VrSigProc, via VrConnect 00029 virtual T *getReadPointer(VrSampleRange r); 00030 public: 00031 VrGuppiBuffer(VrSigProc *m) : VrBuffer(m) { } 00032 }; 00033 00034 template<class T> T * 00035 VrGuppiBuffer<T>::getReadPointer(VrSampleRange r); { 00036 int input = ((VrMUX<T> *) upstream)->inputSelected; 00037 VrBuffer<T> *b = upstream->outBuffer[input]; 00038 return b->getReadPointer(r); 00039 } 00040 #endif

Generated on Wed Aug 4 02:22:05 2004 for GNU Radio by doxygen 1.3.8