本文整理汇总了C++中TAlias::match方法的典型用法代码示例。如果您正苦于以下问题:C++ TAlias::match方法的具体用法?C++ TAlias::match怎么用?C++ TAlias::match使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TAlias
的用法示例。
在下文中一共展示了TAlias::match方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: processDataStream
bool AliasUnit::processDataStream( QString & data )
{
TLuaInterpreter * Lua = mpHost->getLuaInterpreter();
QString lua_command_string = "command";
Lua->set_lua_string( lua_command_string, data );
bool state = false;
typedef list<TAlias *>::const_iterator I;
for( I it = mAliasRootNodeList.begin(); it != mAliasRootNodeList.end(); it++)
{
TAlias * pChild = *it;
// = data.replace( "\n", "" );
if( pChild->match( data ) )
{
state = true;
}
}
// the idea to get "command" after alias processing is finished and send its value
// was too difficult for users because if multiple alias change the value of command it becomes too difficult to handle for many users
// it's easier if we simply intercepts the command and hand responsibility for
// sending a command to the user scripts.
//data = Lua->get_lua_string( lua_command_string );
return state;
}