26 lines
650 B
C++
26 lines
650 B
C++
#ifndef ACLINESEGMENT_H
|
|
#define ACLINESEGMENT_H
|
|
#include "BasicElementInfo.h"
|
|
class ACLineSegment:public BasicElementInfo
|
|
{
|
|
public:
|
|
explicit ACLineSegment(QObject *parent = 0);
|
|
virtual bool parse(QXmlStreamReader &reader);
|
|
QString getTerminalA();
|
|
QString getTerminalB();
|
|
double getLength();
|
|
QString getNamingDescription();
|
|
void setLength(double length);
|
|
protected:
|
|
QString terminalA;
|
|
QString terminalB;
|
|
QString containsOfSubstation;
|
|
QString namingDescription;
|
|
double conductorLength;
|
|
virtual bool derivedParse(QXmlStreamReader &reader);
|
|
private:
|
|
bool isTerminalA;
|
|
};
|
|
|
|
#endif // ACLINESEGMENT_H
|