image_errors.h File Reference

#include <list>
#include <string>
Include dependency graph for image_errors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  image_error {
  image_ok = 0, image_not_found, image_unreadable, image_format_failure,
  image_multiple_match
}
 

possible reasons why we can't read a binary image

More...

Functions

void report_image_error (std::string const &image, image_error error, bool fatal, extra_images const &extra)
void report_image_error (inverted_profile const &profile, bool fatal, extra_images const &extra)
 output why the image passed can't be read to stderr
void report_image_errors (std::list< inverted_profile > const &plist, extra_images const &extra)
 output why any bad images can't be read to stderr

Detailed Description

Report errors in images

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
John Levon

Definition in file image_errors.h.


Enumeration Type Documentation

possible reasons why we can't read a binary image

Enumerator:
image_ok 
image_not_found 
image_unreadable 
image_format_failure 
image_multiple_match 

Definition at line 21 of file image_errors.h.


Function Documentation

void report_image_error ( inverted_profile const &  profile,
bool  fatal,
extra_images const &  extra 
)

output why the image passed can't be read to stderr

Definition at line 72 of file image_errors.cpp.

References inverted_profile::error, inverted_profile::image, and report_image_error().

Here is the call graph for this function:

void report_image_error ( std::string const &  image,
image_error  error,
bool  fatal,
extra_images const &  extra 
)

output why the image passed can't be read to stderr, we warranty only one error report by image name.

void report_image_errors ( std::list< inverted_profile > const &  plist,
extra_images const &  extra 
)

output why any bad images can't be read to stderr


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1