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.

48 lines
976 B

  1. //
  2. // Created by zwsd
  3. //
  4. #pragma once
  5. #include <fstream>
  6. #include <iostream>
  7. #include <list>
  8. #include <map>
  9. #include <memory>
  10. #include <set>
  11. #include <sstream>
  12. #include <string>
  13. #include <vector>
  14. #include "configs/config.hpp"
  15. #include "iflytopcpp/core/spdlogfactory/logger.hpp"
  16. //
  17. #include "configs/config.hpp"
  18. #include "iflytopcpp/core/thread/thread.hpp"
  19. #include "service/device_io_service.hpp"
  20. #include "zservice_container/zservice_container.hpp"
  21. /**
  22. * @brief
  23. *
  24. * service: LightControlService
  25. *
  26. * :
  27. *
  28. */
  29. namespace iflytop {
  30. using namespace std;
  31. using namespace core;
  32. class LightControlService : public enable_shared_from_this<LightControlService> {
  33. ENABLE_LOGGER(LightControlService);
  34. shared_ptr<Config> config;
  35. unique_ptr<Thread> thread;
  36. shared_ptr<DeviceIOService> deviceIoService;
  37. public:
  38. LightControlService(){};
  39. void initialize();
  40. void start();
  41. void stop();
  42. };
  43. } // namespace iflytop