You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#pragma once
#define MAX_IDITERM 64
namespace iflytop { using namespace std;
class IdIterm { public: int projId; int boardTypeId; int boardId; IdIterm(int projId, int boardTypeId, int boardId) : projId(projId), boardTypeId(boardTypeId), boardId(boardId) {} IdIterm() : projId(0), boardTypeId(0), boardId(0) {} };
class IdMgr { IdIterm table[MAX_IDITERM]; int tableNum;
public: static IdMgr& ins() { static IdMgr ins; return ins; }
void addIdItem(IdIterm item); int getBoardId(int projId, int boardTypeId); };
} // namespace iflytop
|