📄 defines.h
字号:
/*******************************************************************************//* Project: SOFTWARE RADIO - LCM Laboratoire de Communications Mobiles *//* -------------------------------------------------------------------------- *//* Filename: defines.h *//* Description: Definition of global "#define"s. *//* -------------------------------------------------------------------------- *//* Date: January 09 2003 *//* Version: v1.0 *//* Authors: Braure Jerome, Ferreiro Jose *//* Communication Systems (9th semester) - EPFL *//* Changelog: ineiti - 04/03/01 - Doubled the width of the modules, and adjusted the STFA-leg length*//*******************************************************************************//*******************************************************************************//* 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 DEFINES_H#define DEFINES_H#include <iostream>using namespace std;#define PRINTVAL(s) {cout << #s << " = " << s << '\n';}#define PRINT(s) {cout << s << '\n';}#define MAXIMUM(x, y) (((x) > (y)) ? x : y)#define MINIMUM(x, y) (((x) < (y)) ? x : y)#define SDB_DIR "/home/vinc/srtestconfig/proc.0/sradio/sdb/"#define BACKGROUND "black"#define FILL_COLOR "black"#define BORDER_COLOR "darkGrey"#define TEXT_COLOR "white"#define LINK_COLOR "green"#define LEG_COLOR "lightGrey"#define BASE_HEXA 16#define BASE_DECIMAL 10#define LEG_LEFT_OFFSET 4#define LEG_WIDTH 5#define LEG_LENGTH 3#define LEG_INTERVAL 5#define STFA_LEG_INTERVAL 100#define LINK_WIDTH 2#define LINK_X_INTERVAL 6#define LINK_Y_INTERVAL 8#define MODULE_MIN_WIDTH 200#define MODULE_MIN_HEIGHT 60#define MODULE_LEFT_OFFSET 30#define MODULE_Y_INTERVAL 20#define MODULE_X_INTERVAL 20#define CANVAS_WIDTH 5000#define CANVAS_HEIGHT 4000#define NUMBER_OF_ATTEMPTS 3#define FILE_ACCESS_TIMER 1#define GUI_UPDATE_TIMER 1000#define GRAPH_UPDATE_TIMER 500#define FILE_INPUTS "inputs"#define FILE_NAME "name"#define FILE_OUTPUTS "outputs"#define FILE_STATS "stats"#define FILE_CONFIG "config"#define STFA_NAME "stfa"/* * min()/max() macros that also do * strict type-checking.. See the * "unnecessary" pointer comparison. * * Shamelessly copied from kernel.h */#define min(x,y) ({ \ const typeof(x) _x = (x); \ const typeof(y) _y = (y); \ (void) (&_x == &_y); \ _x < _y ? _x : _y; })#define max(x,y) ({ \ const typeof(x) _x = (x); \ const typeof(y) _y = (y); \ (void) (&_x == &_y); \ _x > _y ? _x : _y; })#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -