#ifndef VIBRATIONDATA_H #define VIBRATIONDATA_H #include #include #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(cfg["type"].asInt()); } Json::Value ToJson() { Json::Value ch; ch[NAME(version)] = version_; ch[NAME(slot)] = slot_; ch[NAME(type)] = card_type_; return ch; } // private: SeismicMonitor base_config_[CHANNEL_COUNT]; AllFilter filter_[CHANNEL_COUNT]; std::vector> variables_; }; #endif // VIBRATIONDATA_H