added size of params

This commit is contained in:
Andrei Yankovich 2019-09-16 12:38:10 +03:00
parent 723dd9321a
commit b57de4fb7d
2 changed files with 20 additions and 0 deletions

View File

@ -82,6 +82,14 @@ void Params::showHelp(const QStringList &help) {
}
}
int Params::size() {
return params.size();
}
int Params::customParamasSize() {
return size() - 2;
}
QString Params::timeString() {
return QDateTime::currentDateTime().toString();
}

View File

@ -101,6 +101,18 @@ public:
* @param help
*/
static void showHelp(const QStringList& help);
/**
* @brief size
* @return size of all params array
*/
static int size();
/**
* @brief customParamasSize
* @return size of params entered in conosole
*/
static int customParamasSize();
};
}