#pragma once #include "stm32basic/stm32basic.hpp" #include "stm32halport/stm32halport.hpp" #define MAX_IDITERM 64 namespace iflytop { using namespace std; class IdIterm { public: int boardTypeId; int projId; int boardId; IdIterm(int boardTypeId, int projId, int boardId) : boardTypeId(boardTypeId), projId(projId), boardId(boardId) {} IdIterm() {} }; class IdMgr { IdIterm table[MAX_IDITERM]; int tableNum; public: static IdMgr& ins() { static IdMgr ins; return ins; } void addIdItem(IdIterm item); int getBoardId(int boardTypeId); int getProjId(int boardTypeId); }; } // namespace iflytop