-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorkFlowTable.h
38 lines (31 loc) · 982 Bytes
/
WorkFlowTable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// WorkFlowTable.h
// 腾飞科创Model
//
// Created by leavesyoung on 2018/5/2.
// Copyright © 2018年 leavesyoung. All rights reserved.
//
#ifndef WorkFlowTable_h
#define WorkFlowTable_h
#include <map>
#include "workFlow.h"
using namespace std;
class WorkFlowTable{
public:
WorkFlowTable(){}
~WorkFlowTable(){}
map<int,workFlow>* getTable(){
return &table;
}
void setTable(workFlow* w){
/*printf("in setTable:\n%d %d %d %d %d\n",w->getWorkFlowID(),w->getBeginWorkID(),w->getWorkNumber(),w->getRemainWorkNumber(),w->getNotChosenWork()->size());*/
table[w->getWorkFlowID()]=*w;
/*printf("in setTable:\n%d %d %d %d %d\n",table[1].getWorkFlowID(),table[1].getBeginWorkID(),table[1].getWorkNumber(),table[1].getRemainWorkNumber(),table[1].getNotChosenWork()->size());*/
}
void clear(){
table.clear();
}
private:
map<int,workFlow> table;
};
#endif /* WorkFlowTable_h */