mirror of
https://github.com/glest/glest-source.git
synced 2025-10-01 18:06:44 +02:00
- added the ability to remove cell markers
This commit is contained in:
@@ -146,6 +146,25 @@ void NetworkInterface::clearMarkedCellList() {
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<UnMarkedCell> NetworkInterface::getUnMarkedCellList(bool clearList) {
|
||||
std::vector<UnMarkedCell> result;
|
||||
if(unmarkedCellList.empty() == false) {
|
||||
result = unmarkedCellList;
|
||||
|
||||
if(clearList == true) {
|
||||
unmarkedCellList.clear();
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
void NetworkInterface::clearUnMarkedCellList() {
|
||||
if(unmarkedCellList.empty() == false) {
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] unmarkedCellList.size() = %d\n",__FILE__,__FUNCTION__,__LINE__,unmarkedCellList.size());
|
||||
unmarkedCellList.clear();
|
||||
}
|
||||
}
|
||||
|
||||
std::string NetworkInterface::getIpAddress() {
|
||||
std::string result = "";
|
||||
|
||||
|
Reference in New Issue
Block a user