本文整理汇总了C++中Procedure::findParameter方法的典型用法代码示例。如果您正苦于以下问题:C++ Procedure::findParameter方法的具体用法?C++ Procedure::findParameter怎么用?C++ Procedure::findParameter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Procedure
的用法示例。
在下文中一共展示了Procedure::findParameter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: tokenizer
//.........这里部分代码省略.........
nameM.setFromSql(tokenStringsM[1]);
objectM = databaseM->findByNameAndType(ntRole, nameM.get());
if (objectM)
objectTypeM = ntRole;
return;
}
// COMMENT ON COLUMN table.column IS
// COMMENT ON PARAMETER procedure.parameter IS
if (actionM == actCOMMENT && tokensM[1] == kwON)
{
Identifier parent(tokenStringsM[3]);
Identifier child(tokenStringsM[4]);
if (tokensM[2] == kwCOLUMN)
{
if (Relation* r = databaseM->findRelation(parent))
{
r->ensureChildrenLoaded();
if (ColumnPtr c = r->findColumn(child.get()))
{
objectTypeM = ntColumn;
objectM = c.get();
return;
}
}
}
if (tokensM[2] == kwPARAMETER)
{
Procedure* p = dynamic_cast<Procedure *>(
databaseM->findByNameAndType(ntProcedure, parent.get()));
if (p)
{
p->ensureChildrenLoaded();
if (ParameterPtr par = p->findParameter(child.get()))
{
objectTypeM = ntParameter;
objectM = par.get();
return;
}
}
}
}
// get object type
while (objectTypeM == ntUnknown && typeTokenIndex < tokensM.size())
{
switch (tokensM[typeTokenIndex])
{
case kwDATABASE:
objectTypeM = ntDatabase; break;
case kwDOMAIN:
objectTypeM = ntDomain; break;
case kwEXCEPTION:
objectTypeM = ntException; break;
case kwFUNCTION:
objectTypeM = ntFunction; break;
case kwGENERATOR:
objectTypeM = ntGenerator; break;
case kwINDEX:
objectTypeM = ntIndex; break;
case kwPROCEDURE:
objectTypeM = ntProcedure; break;
case kwROLE:
objectTypeM = ntRole; break;
case kwTABLE:
objectTypeM = ntTable; break;