Files
archived-wlan-cloud-ucentralgw/src/ScriptManager.h
2022-11-21 15:29:36 -08:00

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