8 #ifndef __ETHUPDATER_BOARDLIST_H__
9 #define __ETHUPDATER_BOARDLIST_H__
23 for (
int i=0; i<256; ++i)
34 int size(){
return mnBoards; }
39 for (
int i=0; i<mnBoards; ++i)
43 if (mpBoards[i]->mSelected) ++
n;
52 for (
int i=0; i<mnBoards; ++i)
66 if (mnBoards>=256)
return false;
68 mpBoards[mnBoards++]=pBoard;
75 vector<BoardInfo *> ret;
78 for(
int i=0; i<mnBoards; i++)
83 if(
true == mpBoards[i]->mSelected)
88 else if(mpBoards[i]->mAddress == address)
95 ret.push_back(mpBoards[i]);
107 for(
int i=0; i<mnBoards; i++)
109 if(mpBoards[i]->mMac == pBoard->
mMac)
113 mpBoards[i] = pBoard;
125 for (
int i=0; i<mnBoards; ++i)
129 mpBoards[i]->mSelected=sel;
bool addBoard(BoardInfo *pBoard)
bool replaceBoard(BoardInfo *pBoard)
vector< BoardInfo * > getBoards(ACE_UINT32 address)
BoardInfo & operator[](int i)