25 lines
413 B
C++
25 lines
413 B
C++
#ifndef BRANCH_H
|
|
#define BRANCH_H
|
|
#include <QObject>
|
|
#include <QString>
|
|
class Branch:public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Branch(const QString& from, const QString& to,QObject* parent=0);
|
|
public:
|
|
double r;
|
|
double x;
|
|
QString from;
|
|
QString to;
|
|
double ratio;//变比
|
|
double b1;
|
|
double b2;
|
|
double g1;
|
|
double g2;
|
|
protected:
|
|
virtual void extract()=0;
|
|
};
|
|
|
|
#endif // BRANCH_H
|