Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rewrite_gflags.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http:///www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
18 
19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_REWRITE_GFLAGS_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_REWRITE_GFLAGS_H_
21 
23 
24 namespace net_instaweb {
25 
26 class MessageHandler;
27 class RewriteDriverFactory;
28 class RewriteOptions;
29 
33  public:
35  RewriteGflags(const char* progname, int* argc, char*** argv);
36 
39 
44  bool SetOptions(RewriteDriverFactory* factory, RewriteOptions* options) const;
45 
47  bool SetupOptionsOnly(RewriteOptions* options, MessageHandler* handler) const;
48 
50  void SetupFactoryOnly(RewriteDriverFactory* factory) const;
51 
54  int64 lru_cache_size_bytes() const;
55 
58  static bool WasExplicitlySet(const char* name);
59 
65  bool SetRewriters(const char* rewriters_flag_name,
66  const char* rewriters_value,
67  const char* rewrite_level_flag_name,
68  const char* rewrite_level_value,
69  RewriteOptions* options,
70  MessageHandler* handler) const;
71 
72  private:
75 
76 
77 };
78 
79 }
80 
81 #endif
bool SetupOptionsOnly(RewriteOptions *options, MessageHandler *handler) const
Like above, but doesn't expect a RewriteDriverFactory.
int64 lru_cache_size_bytes() const
void SetupFactoryOnly(RewriteDriverFactory *factory) const
Like above, but only modifies the RewriteDriverFactory.
bool SetOptions(RewriteDriverFactory *factory, RewriteOptions *options) const
RewriteGflags()
Constructor that does no option parsing. You probably don't want this.
Definition: rewrite_gflags.h:38
Definition: rewrite_gflags.h:32
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 bool WasExplicitlySet(const char *name)
Definition: message_handler.h:39
Definition: rewrite_options.h:84
Definition: rewrite_driver_factory.h:70