You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.2 KiB
58 lines
1.2 KiB
//
|
|
// Created by zwsd
|
|
//
|
|
|
|
#pragma once
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <list>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "iflytop/components/restful_server/restful_server.hpp"
|
|
#include "iflytop/core/components/jobs/work_queue.hpp"
|
|
#include "iflytop/core/components/timer/simple_timer.hpp"
|
|
#include "iflytop/core/spdlogfactory/logger.hpp"
|
|
#include "iflytoplinuxsdk/src/iflytop/components/iflytop_front_end_service/iflytop_front_end_service.hpp"
|
|
|
|
//
|
|
#include "configs/gconfig.hpp"
|
|
#include "iflytop/components/iflytop_front_end_service/iflytop_front_end_service.hpp"
|
|
#include "iflytoplinuxsdk/src/iflytop/core/components/zservice_container/zservice_container.hpp"
|
|
//
|
|
|
|
//
|
|
#include "extapi_service.hpp"
|
|
|
|
/**
|
|
* @brief
|
|
*
|
|
* service: MainControlService
|
|
*
|
|
* 监听事件:
|
|
* 依赖状态:
|
|
* 依赖服务:
|
|
* 作用:
|
|
*
|
|
*/
|
|
|
|
namespace iflytop {
|
|
using namespace std;
|
|
using namespace core;
|
|
class MainControlService : public enable_shared_from_this<MainControlService> {
|
|
ENABLE_LOGGER(MainControlService);
|
|
|
|
ExtAPIService m_extAPIService;
|
|
|
|
public:
|
|
MainControlService(){};
|
|
void initialize(int argc, char *argv[]);
|
|
|
|
private:
|
|
void initializeService();
|
|
};
|
|
} // namespace iflytop
|