25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
385 B

  1. #pragma once
  2. #include <cpputils/logging/types.h>
  3. namespace utl {
  4. namespace logging {
  5. struct consumer
  6. {
  7. private:
  8. std::string _name;
  9. public:
  10. virtual void log(data_ptr_s data) = 0;
  11. inline const std::string& name() const
  12. { return _name; }
  13. consumer(const std::string& n, bool autoRegister);
  14. ~consumer();
  15. };
  16. }
  17. }