Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
pagespeed::image_compression::ScanlineStatus Class Reference

#include "scanline_status.h"

Public Member Functions

 ScanlineStatus (ScanlineStatusType type, ScanlineStatusSource source, const GoogleString &details)
 
 ScanlineStatus (ScanlineStatusType type)
 
 va_start (args, details)
 
 va_end (args)
 
return ScanlineStatus (type, source, detail_list)
 
bool Success () const
 
ScanlineStatusType type () const
 
ScanlineStatusSource source () const
 
const GoogleStringdetails () const
 
const char * TypeStr () const
 
const char * SourceStr () const
 
const GoogleString ToString () const
 
bool ComesFromReader () const
 

Static Public Member Functions

static ScanlineStatus New (ScanlineStatusType type, ScanlineStatusSource source, const char *details,...) INSTAWEB_PRINTF_FORMAT(3
 

Public Attributes

static ScanlineStatus va_list args
 
GoogleString detail_list
 
StringAppendV & detail_list
 

Detailed Description

A class to report the success or error of ScanlineInterface operations. Scanline*Interface should return the ScanlineStatus corresponding to the earliest error encountered. ScanlineStatus.details_ should be of the form "FunctionThatFailed()" or "failure message".

Member Function Documentation

bool pagespeed::image_compression::ScanlineStatus::ComesFromReader ( ) const
inline

Determines whether the source of this status is a reader of some sort.

static ScanlineStatus pagespeed::image_compression::ScanlineStatus::New ( ScanlineStatusType  type,
ScanlineStatusSource  source,
const char *  details,
  ... 
)
static

This function takes variadic arguments so that we can use the same sets of arguments here and for logging via the PS_LOGGED_STATUS macro below.

pagespeed::image_compression::ScanlineStatus::va_start ( args  ,
details   
)

Ignore the name of this routine: it formats with vsnprintf. See base/stringprintf.cc.


The documentation for this class was generated from the following file: