//
// Created by Ht on 2022/12/3.
//

#ifndef INC_1_LIBDEVCPP_QJAEXTMODULEBASE_H
#define INC_1_LIBDEVCPP_QJAEXTMODULEBASE_H

#include "QJAServer.h"

namespace jedge {

    class JE_API QJAExtModuleBase :
            public QJAMgServer {
    public:
        explicit QJAExtModuleBase(qlibc::QData& cfg, const std::string& appName) :
            QJAMgServer(cfg, rebuildMgbusConfig(cfg, appName), cfg.getString("sc_type")!="tcp"?typeUDP:typeTCP) {
        }
    };
}

#endif //INC_1_LIBDEVCPP_QJAEXTMODULEBASE_H
