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.

32 lines
560 B

12 months ago
  1. #pragma once
  2. #define MAX_IDITERM 64
  3. namespace iflytop {
  4. using namespace std;
  5. class IdIterm {
  6. public:
  7. int boardTypeId;
  8. int projId;
  9. int boardId;
  10. IdIterm(int boardTypeId, int projId, int boardId) : boardTypeId(boardTypeId), projId(projId), boardId(boardId) {}
  11. IdIterm() {}
  12. };
  13. class IdMgr {
  14. IdIterm table[MAX_IDITERM];
  15. int tableNum;
  16. public:
  17. static IdMgr& ins() {
  18. static IdMgr ins;
  19. return ins;
  20. }
  21. void addIdItem(IdIterm item);
  22. int getBoardId(int boardTypeId);
  23. int getProjId(int boardTypeId);
  24. };
  25. } // namespace iflytop