mapper.h

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

H
57
字号
/*******************************************************************************//*  Project:        SOFTWARE RADIO - LCM Laboratoire de Communications Mobiles *//*  -------------------------------------------------------------------------- *//*  Filename:       mapper.h                                                   *//*  Description:    The mapper is the object that decides in which order the   *//*                  modules are to be drawn on the canvas. It then draws them. *//*                  This object contains the list of all modules (instances)   *//*                  currently used in the software radio system.               *//*  -------------------------------------------------------------------------- *//*  Date:           January 09 2003                                            *//*  Version:        v1.0                                                       *//*  Author:         Braure Jerome, Ferreiro Jose                               *//*                  Communication Systems (9th semester) - EPFL                *//*******************************************************************************//*******************************************************************************//*  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 MAPPER_H#define MAPPER_H#include <qvaluevector.h>#include <qptrlist.h>#include "module.h"#include "iolink.h"#define MAX_STFAS 16class Mapper {public:  Mapper();  void map(QCanvas* canvas);  void addModule(Module* module);  Module* getModule(int x, int y);  Module* getModule(int moduleNumber);  // 'Slot To Frame Allocation' module (the central module)  Module* stfas[MAX_STFAS];  int stfaChosen;  int stfaNbr;  // list of all modules  QPtrList<Module> moduleList;       private:  QPtrList<QCanvasLine> connectionList;};#endif

⌨️ 快捷键说明

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