bulletin_broad_show.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // Created by songchao.chen on 2019/6/26.
  3. // 公告牌显示
  4. //
  5. #ifndef WORKSPACE_BULLETIN_BROAD_SHOW_H
  6. #define WORKSPACE_BULLETIN_BROAD_SHOW_H
  7. #include <string>
  8. struct config_file;
  9. struct bulletin_broad_show
  10. {
  11. private:
  12. bulletin_broad_show();
  13. public:
  14. bulletin_broad_show(const bulletin_broad_show&)=delete;
  15. bulletin_broad_show & operator=(const bulletin_broad_show&)=delete;
  16. static bulletin_broad_show *inst();
  17. void OnInit(config_file * config);
  18. //公告牌显示
  19. void run_bulletin_board();
  20. private:
  21. void CreateDirectoryEx(const std::string & sPathName );
  22. void set_bulletin_board_path(std::string & path);
  23. //公告牌显示--当前井下人数: 100 人
  24. uint32_t m_lastshow_bulletin_time = 0;
  25. //公告牌显示-时间间隔
  26. uint32_t m_bulletin_board_time = 0 ;
  27. // 公告牌显示内容文件的目录
  28. std::string m_bulletin_board_path = "";
  29. // 公告牌显示内容文件名
  30. std::string m_bulletin_board_file_name = "";
  31. };
  32. #endif //WORKSPACE_BULLETIN_BROAD_SHOW_H