本文整理汇总了C++中FileList::IsEmpty方法的典型用法代码示例。如果您正苦于以下问题:C++ FileList::IsEmpty方法的具体用法?C++ FileList::IsEmpty怎么用?C++ FileList::IsEmpty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileList
的用法示例。
在下文中一共展示了FileList::IsEmpty方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: while
void Msg2Msg::OnShutdown()
{
//we have to close this stuff;
ListableSocket* sndSocketPtr = NULL;
while(!sndSockets.IsEmpty())//close out the socket
{
sndSocketPtr = sndSockets.RemoveHead();
if(sndSocketPtr->IsOpen()) sndSocketPtr->Close();
delete sndSocketPtr;
}
ListableSocket* rcvSocketPtr = NULL;
while(!rcvSockets.IsEmpty())//close out the socket
{
rcvSocketPtr = rcvSockets.RemoveHead();
if(rcvSocketPtr->IsOpen()) rcvSocketPtr->Close();
delete rcvSocketPtr;
}
ListablePipe* sndPipePtr = NULL;
while(!sndPipes.IsEmpty())//close out the pipe
{
sndPipePtr = sndPipes.RemoveHead();
if(sndPipePtr->IsOpen()) sndPipePtr->Close();
delete sndPipePtr;
}
ListablePipe* rcvPipePtr = NULL;
while(!rcvPipes.IsEmpty())//close out the pipe
{
rcvPipePtr = rcvPipes.RemoveHead();
if(rcvPipePtr->IsOpen()) rcvPipePtr->Close();
delete rcvPipePtr;
}
ListableFile* sndFilePtr = NULL;
while(!sndFiles.IsEmpty())//close out the file
{
sndFilePtr = sndFiles.RemoveHead();
if(sndFilePtr->IsOpen()) sndFilePtr->Close();
delete sndFilePtr;
}
if(usingstdin)
{
//do nothing
}
if(usingstdout)
{
//do nothing
}
TRACE("msg2Msg: Done.\n");
} // end Msg2Msg::OnShutdown()