init.inline.h 780 B

123456789101112131415161718192021222324
  1. #ifndef AFUN_INIT_INLINE_H
  2. #define AFUN_INIT_INLINE_H
  3. #include "init.h"
  4. namespace aFunit {
  5. InitInfo::InitInfo(aFuntool::LogFactory &factor_,
  6. aFuntool::Logger &afun_logger_,
  7. aFuntool::Logger &core_logger_,
  8. aFuntool::Logger &parser_logger_,
  9. aFuntool::Logger &code_logger_,
  10. aFuntool::Logger &sys_logger_)
  11. : factor{factor_}, core_logger{core_logger_}, parser_logger{parser_logger_}, code_logger{code_logger_},
  12. sys_logger{sys_logger_}, afun_logger{afun_logger_} {
  13. aFuntool::aFunAtExit(aFuntool::DlcHandle::dlcExit);
  14. }
  15. void setAFunLogger(aFuntool::Logger *log) {
  16. aFunLogger = log;
  17. }
  18. }
  19. #endif //AFUN_INIT_INLINE_H