tflite::ErrorReporter

This is an abstract class.

#include <error_reporter.h>

A functor that reports error to supporting system.

Summary

Invoked similar to printf.

Usage: ErrorReporter foo; foo.Report("test %d", 5); or va_list args; foo.Report("test %d", args); // where args is va_list

Subclass ErrorReporter to provide another reporting destination. For example, if you have a GUI program, you might redirect to a buffer that drives a GUI error log box.

Inheritance

Direct Known Subclasses:tflite::StderrReporter

Constructors and Destructors

~ErrorReporter()

Public functions

Report(const char *format, va_list args)=0
virtual int
Report(const char *format, ...)
int
ReportError(void *, const char *format, ...)
int

Public functions

Report

virtual int Report(
  const char *format,
  va_list args
)=0

Report

int Report(
  const char *format,
  ...
)

ReportError

int ReportError(
  void *,
  const char *format,
  ...
)

~ErrorReporter

virtual  ~ErrorReporter()