LogToStdout.h 713 B

123456789101112131415161718192021222324252627282930
  1. // David Eberly, Geometric Tools, Redmond WA 98052
  2. // Copyright (c) 1998-2020
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // https://www.boost.org/LICENSE_1_0.txt
  5. // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
  6. // Version: 4.0.2019.08.13
  7. #pragma once
  8. #include <Mathematics/Logger.h>
  9. #include <iostream>
  10. namespace WwiseGTE
  11. {
  12. class LogToStdout : public Logger::Listener
  13. {
  14. public:
  15. LogToStdout(int flags)
  16. :
  17. Logger::Listener(flags)
  18. {
  19. }
  20. private:
  21. virtual void Report(std::string const& message)
  22. {
  23. std::cout << message.c_str() << std::flush;
  24. }
  25. };
  26. }