1 #ifndef IMAGE_IO_BASE_MESSAGE_STATS_H_ // NOLINT 2 #define IMAGE_IO_BASE_MESSAGE_STATS_H_ // NOLINT 3 4 #include "image_io/base/types.h" 5 6 namespace photos_editing_formats { 7 namespace image_io { 8 9 /// A structure for holding message stats. 10 struct MessageStats { MessageStatsMessageStats11 MessageStats() { Clear(); } ClearMessageStats12 void Clear() { error_count = warning_count = status_count = 0; } 13 bool operator!=(const MessageStats& rhs) const { return !(*this == rhs); } 14 bool operator==(const MessageStats& rhs) const { 15 return error_count == rhs.error_count && 16 warning_count == rhs.warning_count && 17 status_count == rhs.status_count; 18 } 19 size_t error_count; 20 size_t warning_count; 21 size_t status_count; 22 }; 23 24 } // namespace image_io 25 } // namespace photos_editing_formats 26 27 #endif // IMAGE_IO_BASE_MESSAGE_STATS_H_ // NOLINT 28