#ifndef LOADINFO_H #define LOADINFO_H #include #include #include #include #include #include #include class LoadInfo { public: explicit LoadInfo(double powerFactor=0.95); ~LoadInfo(); QString getLoadName(); QString getLoadPath(); void setLoadName(const QString &name); void setLoadPath(const QString &path); bool updateByTime(const QTime& time); double get3PhP(); double get3PhQ(); double getPA(); double getPB(); double getPC(); double getQA(); double getQB(); double getQC(); private: bool isStartWithTime(const QString& str); QString trimDoubleQuotation(const QString& str); QString loadName; QString loadPath; double powerFactor; QPair pqA; QPair pqB; QPair pqC; double ph3P; double ph3Q; QPair getPQ(double current); }; #endif // LOADINFO_H