2024-05-15 10:59:43 +08:00
|
|
|
#ifndef PUBLIC_DEF_HEADER
|
|
|
|
#define PUBLIC_DEF_HEADER
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2024-05-15 17:34:07 +08:00
|
|
|
#include <QWidget>
|
2024-05-15 10:59:43 +08:00
|
|
|
|
|
|
|
struct OprBase {
|
|
|
|
std::string node_path{};
|
|
|
|
std::string the_node{};
|
|
|
|
std::string purpose{};
|
|
|
|
std::string xml_path{};
|
|
|
|
};
|
|
|
|
|
|
|
|
std::vector<std::string> splitString(const std::string& input, const std::string& delimiter);
|
|
|
|
|
2024-05-15 17:34:07 +08:00
|
|
|
class CUtil
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CUtil() = default;
|
|
|
|
~CUtil() = default;
|
|
|
|
public:
|
|
|
|
static void msg(QWidget* parent, const QString& content);
|
2024-05-15 23:06:48 +08:00
|
|
|
static bool affirm(QWidget* parent, const QString& titile, const QString& content);
|
2024-05-15 17:34:07 +08:00
|
|
|
};
|
|
|
|
|
2024-05-15 10:59:43 +08:00
|
|
|
#endif
|