mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2026-03-20 03:41:02 +00:00
35 lines
571 B
C++
35 lines
571 B
C++
//
|
|
// Created by stephane bourque on 2022-11-21.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "framework/SubSystemServer.h"
|
|
|
|
namespace OpenWifi {
|
|
|
|
class ScriptManager : public SubSystemServer {
|
|
public:
|
|
static auto instance() {
|
|
auto static instance_ = new ScriptManager;
|
|
return instance_;
|
|
}
|
|
|
|
int Start();
|
|
void Stop();
|
|
|
|
private:
|
|
std::string ScriptDir_;
|
|
|
|
explicit ScriptManager() noexcept:
|
|
SubSystemServer("ScriptManager", "SCRIPT-MGR", "script.manager")
|
|
{
|
|
}
|
|
|
|
};
|
|
|
|
inline auto ScriptManager() { return ScriptManager::instance(); }
|
|
|
|
} // namespace OpenWifi
|
|
|