2014-11-22 22:18:18 +08:00
|
|
|
#ifndef BREAKER_H
|
|
|
|
|
#define BREAKER_H
|
|
|
|
|
#include <QXmlStreamReader>
|
2014-12-06 21:48:07 +08:00
|
|
|
#include <QString>
|
2014-11-22 22:18:18 +08:00
|
|
|
#include "BasicElementInfo.h"
|
|
|
|
|
class Breaker:public BasicElementInfo
|
|
|
|
|
{
|
|
|
|
|
public:
|
2014-11-24 22:01:30 +08:00
|
|
|
explicit Breaker(QObject *parent = 0);
|
2014-11-22 22:18:18 +08:00
|
|
|
virtual bool parse(QXmlStreamReader& reader);
|
2015-01-18 18:18:18 +08:00
|
|
|
QString getEquipmentMemberOf_EquipmentContainer();
|
2014-12-12 17:38:45 +08:00
|
|
|
QString getNamingDescription();
|
2014-12-06 21:48:07 +08:00
|
|
|
QString getTerminalA();
|
|
|
|
|
QString getTerminalB();
|
2014-12-11 20:32:49 +08:00
|
|
|
bool getOpenState();
|
2014-11-22 22:18:18 +08:00
|
|
|
protected:
|
2014-11-24 22:01:30 +08:00
|
|
|
QString terminalA;
|
|
|
|
|
QString terminalB;
|
|
|
|
|
QString equipmentContainer;
|
2014-12-12 17:38:45 +08:00
|
|
|
QString namingDescription;
|
2014-12-11 20:32:49 +08:00
|
|
|
bool isOpen;
|
2014-11-22 22:18:18 +08:00
|
|
|
virtual bool derivedParse(QXmlStreamReader& reader);
|
|
|
|
|
private:
|
|
|
|
|
bool isTerminalA;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // BREAKER_H
|