把LineStru等类型声明放到单独的文件中。

Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
dmy@lab
2015-01-20 20:59:47 +08:00
parent 41502b5afa
commit da0a7f192e
7 changed files with 72 additions and 36 deletions

View File

@@ -0,0 +1,29 @@
#ifndef COMMONTYPE
#define COMMONTYPE
struct BranchStruc
{
QString fromID;
QString toID;
int fromNum;
int toNum;
};
struct LineStru:public BranchStruc
{
Line *line;
};
struct SwitchStru:public BranchStruc
{
Switch *sw;
};
struct TransformerStru:public BranchStruc
{
Transformer *tf;
};
#endif // COMMONTYPE