1 #ifndef TTKCOMMANDLINE_H
2 #define TTKCOMMANDLINE_H
22 #include <QCoreApplication>
58 inline QString
first()
const noexcept {
return m_first; }
70 return m_first == other.m_first && m_second == other.m_second;
74 return m_first != other.m_first || m_second != other.m_second;
100 void setDescription(
const QString &
description) noexcept;
109 bool addOptions(
const QList<TTKCommandLineOption> &options);
118 void process(
const QStringList &arguments);
137 void showHelp()
const;
146 #endif // TTKCOMMANDLINE_H
bool operator==(const VolumeSettings &v1, const VolumeSettings &v2)
#define TTK_MODULE_EXPORT
QString description() const noexcept
TTKCommandLineOption(const QString &first, const QString &description) noexcept
The class of the command line option.
QList< TTKCommandLineOption > m_options
TTKCommandLineOption(const QString &first, const QString &second, const QString &description) noexcept
QString second() const noexcept
#define TTK_DECLARE_MODULE(Class)
bool isEmpty() const noexcept
bool operator!=(const VolumeSettings &v1, const VolumeSettings &v2)
TTKCommandLineOption(const QString &first) noexcept
QString first() const noexcept
QHash< QString, QString > m_commands
The class of the command line parser.