32 lines
828 B
C++
32 lines
828 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);
|
|
// private:
|
|
SeismicMonitor base_config_[CHANNEL_COUNT];
|
|
AllFilter filter_[CHANNEL_COUNT];
|
|
std::vector<std::shared_ptr<VariableBase>> variables_;
|
|
};
|
|
|
|
#endif // VIBRATIONDATA_H
|