本文整理汇总了C++中EventArray::begin方法的典型用法代码示例。如果您正苦于以下问题:C++ EventArray::begin方法的具体用法?C++ EventArray::begin怎么用?C++ EventArray::begin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EventArray
的用法示例。
在下文中一共展示了EventArray::begin方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: WriteWindowEventToText
VOID CDataPool::WriteWindowEventToText(CString & text,CEGUI::Window* pWindow, const CString& gap)
{
EventArray* pEventArray = GetWindowEvent(pWindow->getName().c_str());
if (pEventArray)
{
CString textTemp;
EventArray::iterator it = pEventArray->begin();
EventArray::iterator end = pEventArray->end();
for (; it != end; it++)
{
textTemp = gap;
textTemp += "<Event Name=\"";
textTemp += it->eventName;
textTemp += "\" Function=\"";
textTemp += it->funcName;
if (it->isReadFromLayout)
{
textTemp += "\" />\n";
}
else
{
textTemp += "()\" />\n";
}
text += mbcs_to_utf8(textTemp);
}
}
}
示例2: AddWindowEventItem
void CDataPool::AddWindowEventItem(const CString& szWindowName, const CString& szEventName, const CString& szFunction,BOOL isFromLayout /* =FALSE*/)
{
//如果没有,那么添加
AddWindowEvent(szWindowName);
EventArray* pEA = GetWindowEvent(szWindowName);
if (pEA)
{
//更新旧的
EventArray::iterator it = pEA->begin();
EventArray::iterator end = pEA->end();
for (; it != end; it++)
{
if(it->eventName == szEventName)
{
it->funcName = szFunction;
return;
}
}
//添加新的
Event_Define ed;
ed.eventName = szEventName;
ed.funcName = szFunction;
ed.isReadFromLayout = isFromLayout;
pEA->push_back(ed);
}
}
示例3: closeAllEvent
void closeAllEvent() {
for (EventArray::iterator i = events.begin(), end = events.end(); i != end; i++) {
::CloseHandle(*i);
}
events.clear();
}