29
testHasttable/element/commontype.h
Normal file
29
testHasttable/element/commontype.h
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user