34 lines
565 B
C++
34 lines
565 B
C++
/**
|
|
* @file eqpalg/stat_tools/stat_alarm.h
|
|
* @brief 统计模块的报警
|
|
* @author Cat (null.null.null@qq.com)
|
|
* @version 0.1
|
|
* @date 2021-09-09
|
|
*
|
|
* Copyright: Baosight Co. Ltd.
|
|
* DO NOT COPY/USE WITHOUT PERMISSION
|
|
*
|
|
*/
|
|
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "mix_cc/type/range.h"
|
|
/**
|
|
* @brief 统计模块的报警信息
|
|
*/
|
|
struct StatAlarm {
|
|
public:
|
|
bool alarmed;
|
|
std::string alarm_str;
|
|
std::vector<double> value;
|
|
std::vector<mix_cc::float_range_t> range;
|
|
|
|
public:
|
|
StatAlarm();
|
|
|
|
~StatAlarm();
|
|
|
|
operator bool();
|
|
};
|