Page Speed Optimization Libraries  1.7.30.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions
net_instaweb::RewriteGflags Class Reference

#include "rewrite_gflags.h"

List of all members.

Public Member Functions

 RewriteGflags (const char *progname, int *argc, char ***argv)
 The constructor parses the options.
 RewriteGflags ()
 Constructor that does no option parsing.
bool SetOptions (RewriteDriverFactory *factory, RewriteOptions *options) const
int64 lru_cache_size_bytes () const
bool SetRewriters (const char *rewriters_flag_name, const char *rewriters_value, const char *rewrite_level_flag_name, const char *rewrite_level_value, RewriteOptions *options, MessageHandler *handler) const

Static Public Member Functions

static bool WasExplicitlySet (const char *name)

Detailed Description

Implements rewriter options as command-line options, using the Google "gflags" package.


Member Function Documentation

LRU size is potentially needed at factory construction time so it is exposed as a method.

Apply the parsed options to the options and factory. Note that some of the command-line flags control how the factory is constructed, whereas others affect the rewriting options, and should be considered global defaults.

bool net_instaweb::RewriteGflags::SetRewriters ( const char *  rewriters_flag_name,
const char *  rewriters_value,
const char *  rewrite_level_flag_name,
const char *  rewrite_level_value,
RewriteOptions options,
MessageHandler *  handler 
) const

Sets the rewrite level/list passed on the specified option names & values. The flag names are passed in to provide better error messages.

False is returned if the values cannot be parsed.

static bool net_instaweb::RewriteGflags::WasExplicitlySet ( const char *  name) [static]

Determines whether a flag was explicitly set, as opposed to having its default value.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines