You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.0 KiB
C

/**
*
* @file FITKCommandLineHandler.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-06
*
*/
#ifndef __FITKCOMMANDLINE_HANDLER_H___
#define __FITKCOMMANDLINE_HANDLER_H___
#include "FITKAppFrameworkAPI.h"
#include <QStringList>
namespace AppFrame
{
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-06
*/
class FITKAppFrameworkAPI FITKCommandLineHandler
{
public:
/**
* @brief Construct a new FITKCommandLineHandler object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-06
*/
explicit FITKCommandLineHandler();
/**
* @brief Destroy the FITKCommandLineHandler object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-06
*/
virtual ~FITKCommandLineHandler() = default;
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-06
*/
virtual void exec();
/**
* @brief gui
* @return true
* @return false
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-06
*/
virtual bool isNoGUI();
/**
* @brief index
* @param[i] index
* @return QString
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-06
*/
QString argValue(const int index);
/**
* @brief
* @param[i] v
* @return true
* @return false
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-06
*/
bool containsValue(QString v);
protected:
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-06
*/
QStringList _args{};
};
}
#endif