123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #pragma once
- //字母标签集合
- class LabelSet
- {
- public:
- LabelSet(LPCTSTR* _pTable,int _n);
- LPCTSTR getLabel(int _id) const;
- ~LabelSet();
- protected:
- LabelSet(){}
- private:
- LPCTSTR* pTable;
- int n;
- };
- //相当于单刀双掷开关组
- class LabelSetEx
- {
- protected:
- struct Switch
- {
- LabelSet* s[2];
- int at;
- };
- public:
- LabelSetEx(int _n);
- bool addSets(int id,LPCTSTR* s1,LPCTSTR* s2,int n,int at = 0);
- LPCTSTR getLable(int id,int off) const;
- void turn(int id);
- ~LabelSetEx();
- private:
- int n; //开关组总个数
- Switch* pGroup; //开关组
- };
|