⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 block.h

📁 This a framework to test new ideas in transmission technology. Actual development is a LDPC-coder in
💻 H
字号:
/***************************************************************************         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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -