本文整理汇总了C++中qstringlist::iterator::toLongLong方法的典型用法代码示例。如果您正苦于以下问题:C++ iterator::toLongLong方法的具体用法?C++ iterator::toLongLong怎么用?C++ iterator::toLongLong使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类qstringlist::iterator
的用法示例。
在下文中一共展示了iterator::toLongLong方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: fi
void
CLArgsPrivate::parse()
{
{
QStringList::iterator it = hasToken( QString::fromUtf8("version"), QString::fromUtf8("v") );
if ( it != args.end() ) {
QString msg = QObject::tr("%1 version %2 at commit %3 on branch %4 built on %4").arg( QString::fromUtf8(NATRON_APPLICATION_NAME) ).arg( QString::fromUtf8(NATRON_VERSION_STRING) ).arg( QString::fromUtf8(GIT_COMMIT) ).arg( QString::fromUtf8(GIT_BRANCH) ).arg( QString::fromUtf8(__DATE__) );
std::cout << msg.toStdString() << std::endl;
error = 1;
return;
}
}
{
QStringList::iterator it = hasToken( QString::fromUtf8("help"), QString::fromUtf8("h") );
if ( it != args.end() ) {
CLArgs::printUsage( args[0].toStdString() );
error = 1;
return;
}
}
{
QStringList::iterator it = hasToken( QString::fromUtf8("background"), QString::fromUtf8("b") );
if ( it != args.end() ) {
isBackground = true;
args.erase(it);
}
}
{
QStringList::iterator it = hasToken( QString::fromUtf8("interpreter"), QString::fromUtf8("t") );
if ( it != args.end() ) {
isInterpreterMode = true;
isBackground = true;
std::cout << QObject::tr("Note: -t argument given, loading in command-line interpreter mode, only Python commands / scripts are accepted").toStdString()
<< std::endl;
args.erase(it);
}
}
{
QStringList::iterator it = hasToken( QString::fromUtf8("render-stats"), QString::fromUtf8("s") );
if ( it != args.end() ) {
enableRenderStats = true;
args.erase(it);
}
}
{
QStringList::iterator it = hasToken( QString::fromUtf8(NATRON_BREAKPAD_PROCESS_PID), QString() );
if ( it != args.end() ) {
++it;
if ( it != args.end() ) {
breakpadProcessPID = it->toLongLong();
args.erase(it);
} else {
std::cout << QObject::tr("You must specify the breakpad process executable file path").toStdString() << std::endl;
error = 1;
return;
}
}
}
{
QStringList::iterator it = hasToken( QString::fromUtf8(NATRON_BREAKPAD_PROCESS_EXEC), QString() );
if ( it != args.end() ) {
++it;
if ( it != args.end() ) {
breakpadProcessFilePath = *it;
args.erase(it);
} else {
std::cout << QObject::tr("You must specify the breakpad process executable file path").toStdString() << std::endl;
error = 1;
return;
}
}
}
{
QStringList::iterator it = hasToken( QString::fromUtf8(NATRON_BREAKPAD_CLIENT_FD_ARG), QString() );
if ( it != args.end() ) {
++it;
if ( it != args.end() ) {
breakpadPipeClientID = it->toInt();
args.erase(it);
} else {
std::cout << QObject::tr("You must specify the breakpad pipe client FD").toStdString() << std::endl;
error = 1;
return;
}
}
}
{
//.........这里部分代码省略.........