block.h

来自「This a framework to test new ideas in tr」· C头文件 代码 · 共 78 行

H
78
字号
/***************************************************************************         block.h  -  The virtual class for the datablocks                            -------------------    begin                :  2002    authors              :  Linus Gasser    emails               :  linus.gasser@epfl.ch ***************************************************************************//***************************************************************************                                 Changes                                 ------- date - name - description 02-12-27 - ineiti - begin  **************************************************************************//*************************************************************************** *                                                                         * *   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.                                   * *                                                                         * ***************************************************************************/#ifndef BLOCK_H__#define BLOCK_H__#include <qstring.h>#include <qfile.h>#include <qobject.h>#include <iostream>#include "swr_types.h"#include "fifocmd.h"using namespace std;/** * @short Virtual class for a datablock */enum  showType_e { show_complex, show_real, show_imag, show_abs, 		   show_fft, show_plot };class Block : public QObject{  Q_OBJECTpublic:  Block(){};  virtual int getLength() {    return length;  }  int getNumOfSamples();  virtual swr_signal_type_t getType() {    return sig_type;  };  virtual QString getName(){    return blockName;  };  virtual int Data( double **x, double **y, int length,		    enum showType_e s );  virtual QByteArray getData( ) = 0;  void getSample( void *data, int index, double &re, double &im );  int TypeSize();  int TypeSize( swr_signal_type_t type ); protected:  swr_signal_type_t sig_type;  unsigned int length;  FifoCmd *radio;  QString blockName;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?