TSI_Config/vibrationdata.h
2025-04-01 17:52:25 +08:00

33 lines
863 B
C++

#ifndef VIBRATIONDATA_H
#define VIBRATIONDATA_H
#include <memory>
#include <vector>
#include "cardbase.h"
class VibrationData : public CardBase {
public:
VibrationData();
// void FromJson(const Json::Value &cfg) {
// version_ = cfg["version"].asInt();
// slot_ = cfg["slot"].asInt();
// card_type_ = static_cast<CardType>(cfg["type"].asInt());
// }
// Json::Value ToJson() {
// Json::Value ch;
// ch[NAME(version)] = version_;
// ch[NAME(slot)] = slot_;
// ch[NAME(type)] = card_type_;
// return ch;
// }
std::shared_ptr<VariableBase> GetChannelPtr(int cid);
void RemoveChannel(int cid);
// private:
SeismicMonitor base_config_[CHANNEL_COUNT];
// AllFilter filter_[CHANNEL_COUNT];
std::vector<std::shared_ptr<VariableBase>> variables_;
};
#endif // VIBRATIONDATA_H