#pragma once #include #include "structure.h" #include "nlohmann/json.hpp" using stMcStateLight = struct _stMcStateLight { std::vector McStateLight; NLOHMANN_DEFINE_TYPE_INTRUSIVE(_stMcStateLight, McStateLight) }; class CMachineStateLight { public: CMachineStateLight(); ~CMachineStateLight(); bool Serialize(const std::string& strFile); bool Deserialize(const std::string& strFile); std::vector& GetMcStateLight() { return McStateLight; } private: std::vector McStateLight; NLOHMANN_DEFINE_TYPE_INTRUSIVE(CMachineStateLight, McStateLight) };