LogStream.h 967 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef AI_LOGSTREAM_H_INC
  2. #define AI_LOGSTREAM_H_INC
  3. #include <string>
  4. namespace Assimp
  5. {
  6. // ---------------------------------------------------------------------------
  7. /** @class LogStream
  8. * @brief Abstract interface for log stream implementations.
  9. */
  10. class LogStream
  11. {
  12. protected:
  13. /** @brief Default constructor */
  14. LogStream();
  15. public:
  16. /** @brief Virtual destructor */
  17. virtual ~LogStream();
  18. /** @brief Overwrite this for your own output methods */
  19. virtual void write(const std::string &message) = 0;
  20. };
  21. // ---------------------------------------------------------------------------
  22. // Default constructor
  23. inline LogStream::LogStream()
  24. {
  25. // empty
  26. }
  27. // ---------------------------------------------------------------------------
  28. // Virtual destructor
  29. inline LogStream::~LogStream()
  30. {
  31. // empty
  32. }
  33. // ---------------------------------------------------------------------------
  34. } // Namespace Assimp
  35. #endif