#pragma once #include #include #include class TimeAction : public QObject { public: TimeAction(QObject* parent = nullptr); TimeAction(std::vector> data, const QString& path, QObject* parent = nullptr); ~TimeAction() override; static TimeAction* LoadFromFile(const QString& path, QObject* parent = nullptr); const QString& GetPath() const { return path_; } int GetValue(double t) const; private: std::vector> data_; QString path_; };