summaryrefslogtreecommitdiff
path: root/includes/image_io/base/message_stats.h
blob: 6b338f08e08a8450b985edfc46dcdae898ba8ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef IMAGE_IO_BASE_MESSAGE_STATS_H_  // NOLINT
#define IMAGE_IO_BASE_MESSAGE_STATS_H_  // NOLINT

#include "image_io/base/types.h"

namespace photos_editing_formats {
namespace image_io {

/// A structure for holding message stats.
struct MessageStats {
  MessageStats() { Clear(); }
  void Clear() { error_count = warning_count = status_count = 0; }
  size_t error_count;
  size_t warning_count;
  size_t status_count;
};

}  // namespace image_io
}  // namespace photos_editing_formats

#endif  // IMAGE_IO_BASE_MESSAGE_STATS_H_  // NOLINT