• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef IMAGE_IO_BASE_COUT_MESSAGE_WRITER_H_  // NOLINT
2 #define IMAGE_IO_BASE_COUT_MESSAGE_WRITER_H_  // NOLINT
3 
4 #include <iostream>
5 
6 #include "image_io/base/message_writer.h"
7 
8 namespace photos_editing_formats {
9 namespace image_io {
10 
11 /// This subclass of MessageWriter writes messages to cout.
12 class CoutMessageWriter : public MessageWriter {
13  public:
WriteMessage(const Message & message)14   void WriteMessage(const Message& message) override {
15     std::cout << GetFormattedMessage(message) << std::endl;
16   }
17 };
18 
19 }  // namespace image_io
20 }  // namespace photos_editing_formats
21 
22 #endif // IMAGE_IO_BASE_COUT_MESSAGE_WRITER_H_  // NOLINT
23