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.

27 lines
731 B

  1. #pragma once
  2. #include <fstream>
  3. #include <iostream>
  4. #include <list>
  5. #include <map>
  6. #include <memory>
  7. #include <set>
  8. #include <sstream>
  9. #include <string>
  10. #include "app_protocols/transmit_disfection_protocol/transmit_disfection_protocol.hpp"
  11. #include "iflytop/core/spdlogfactory/logger_factory.hpp"
  12. //
  13. #include "appbase/appbean/device_state.hpp"
  14. namespace iflytop {
  15. using namespace std;
  16. class Internationalization {
  17. public:
  18. static string cmdid2str(int cmdid);
  19. static string ecode2description(int ecode);
  20. static string deviceBusyError2description(int ecode, DeviceState deviceState);
  21. static string ecode2description(int ecode, int32_t toboard, int32_t cmdid, uint8_t* param, int32_t paramLen);
  22. };
  23. } // namespace iflytop