//------------------------------------------------------------------------ // // VisDataLoader.h // // This pure abstract class allows for a common interface to various // Data Loaders. Each Data Loader can load, parse, and create the data // in its own way. It only has to support the LoadData() method, which // will be called when it is time to load the wave/spec data, and the // IsValid method. // // ------------------------------------------------------------------- // * COPYRIGHT 2001, Greg Ratajik and Ratajik Software * // * All rights Reserved * // ------------------------------------------------------------------- // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // // More information about this program can be found at: // http://www.ratajik.com/VisInterface // C H A N G E L O G // ===================================================================== // Change ID Date Programmer Description // ============ ========= =========== ================================ // 02-21-01 Ratajik Initial Development //------------------------------------------------------------------------ #pragma once //------------------------------------------------------------------------ // // Class: CVisDatLoader // // Description: Pure abstract data loader class. // // Methods // of // Interest: LoadData() // - MUST define. The child should fill up to VIS_BUFFER_SIZE // of data into any of the 4 passed buffers. // // IsValid() // - MUST Define. Return TRUE if the Data Loader is valid. // // C H A N G E L O G // =================================================================== // Change ID Date Programmer Description // ============ ========= =========== ================================ // 02-21-01 Ratajik Initial Development //_________________________________________________________________________ class CVisDataLoader { public: virtual ~CVisDataLoader( void ) { }; virtual bool LoadData(unsigned char *pWaveLeft, unsigned char *pWaveRight, unsigned char *pSpecLeft, unsigned char *pSpecRight) = NULL; virtual bool IsValid( void ) = NULL; protected: private: };