2024-02-29 06:20:06 +00:00
|
|
|
//
|
|
|
|
|
// Created by Mr.V on 2024/1/26.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef TRAIN_RFID_CONFIGUTIL_H
|
|
|
|
|
#define TRAIN_RFID_CONFIGUTIL_H
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <QFileInfo>
|
|
|
|
|
#include <QTextCodec>
|
2024-04-24 08:14:33 +00:00
|
|
|
#include "common.h"
|
2024-02-29 06:20:06 +00:00
|
|
|
namespace ai_matrix {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class ConfigUtil {
|
|
|
|
|
public:
|
|
|
|
|
ConfigUtil();
|
|
|
|
|
~ConfigUtil();
|
|
|
|
|
|
|
|
|
|
static bool readBaseConfig(const QString& configFile, QString &errorMessage, ai_matrix::BaseConfig &config);
|
|
|
|
|
static bool readInterfaceConfig(const QString& configFile, QString &errorMessage, ai_matrix::InterfaceConfig &config);
|
2024-03-14 13:14:36 +00:00
|
|
|
static bool readSocketServerConfig(const QString& configFile, QString &errorMessage, ai_matrix::SServerConfig &config);
|
2024-02-29 06:20:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //TRAIN_RFID_CONFIGUTIL_H
|