utility.hpp
来自「RFID reader 语 tag 模拟器」· HPP 代码 · 共 38 行
HPP
38 行
#ifndef UTILITY_H #define UTILITY_H #include <iostream> using namespace std; #include <math.h> #include <boost/shared_ptr.hpp> typedef unsigned int t_uint; typedef unsigned long t_ulong; typedef unsigned char t_uchar; typedef boost::shared_ptr<ostream> ostreamPtr; inline double powerToDecibels(double powerValue) { assert(powerValue != 0.0); return (10.0 * log10(powerValue / 1.0)); } inline double decibelsToPower(double decibelValue) { return (1.0 * pow(10, (decibelValue / 10.0))); } const double SPEED_OF_LIGHT = 299792458.0; const double PI = 3.14159265; #endif // UTILITY_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?