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.
 
 
 

34 lines
637 B

#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