本文整理汇总了C++中DebuggerClient::args方法的典型用法代码示例。如果您正苦于以下问题:C++ DebuggerClient::args方法的具体用法?C++ DebuggerClient::args怎么用?C++ DebuggerClient::args使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DebuggerClient
的用法示例。
在下文中一共展示了DebuggerClient::args方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onClientImpl
void CmdShell::onClientImpl(DebuggerClient &client) {
if (DebuggerCommand::displayedHelp(client)) return;
if (client.argCount() == 0) {
help(client);
return;
}
m_args = *client.args();
CmdShellPtr cmd = client.xend<CmdShell>(this);
client.print(cmd->m_out);
}
示例2: onClient
void CmdExtension::onClient(DebuggerClient &client) {
if (DebuggerCommand::displayedHelp(client)) return;
m_args = *client.args();
auto cmd = client.xend<CmdExtension>(this);
if (cmd->m_out.empty()) {
client.error(cmd->m_err);
} else {
client.print(cmd->m_out);
}
}
示例3: onClient
void CmdRun::onClient(DebuggerClient &client) {
TRACE(2, "CmdRun::onClient\n");
if (DebuggerCommand::displayedHelp(client)) return;
m_args = StringVecPtr(client.args(), null_deleter());
client.sendToServer(this);
client.clearCachedLocal();
client.setFrame(0);
throw DebuggerConsoleExitException();
}
示例4: onClientImpl
void CmdRun::onClientImpl(DebuggerClient &client) {
if (DebuggerCommand::displayedHelp(client)) return;
m_args = StringVecPtr(client.args(), null_deleter());
m_smallStep = client.getDebuggerSmallStep();
client.sendToServer(this);
client.clearCachedLocal();
client.setFrame(0);
throw DebuggerConsoleExitException();
}
示例5: onClient
void CmdRun::onClient(DebuggerClient &client) {
TRACE(2, "CmdRun::onClient\n");
if (DebuggerCommand::displayedHelp(client)) return;
m_args = std::shared_ptr<std::vector<std::string>>(client.args(),
[] (const void*) {});
client.sendToServer(this);
client.clearCachedLocal();
client.setFrame(0);
throw DebuggerConsoleExitException();
}