webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
gflags_gflags.h
Go to the documentation of this file.
1 // Copyright (c) 2014, Andreas Schuh
2 // All rights reserved.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are
6 // met:
7 //
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above
11 // copyright notice, this list of conditions and the following disclaimer
12 // in the documentation and/or other materials provided with the
13 // distribution.
14 // * Neither the name of Google Inc. nor the names of its
15 // contributors may be used to endorse or promote products derived from
16 // this software without specific prior written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 
30 // -----------------------------------------------------------------------------
31 // Imports the gflags library symbols into an alternative/deprecated namespace.
32 
33 #ifndef GFLAGS_GFLAGS_H_
34 # error The internal header gflags_gflags.h may only be included by gflags.h
35 #endif
36 
37 #ifndef GFLAGS_NS_GFLAGS_H_
38 #define GFLAGS_NS_GFLAGS_H_
39 
40 
41 namespace gflags {
42 
43 
48 
67 using GFLAGS_NAMESPACE::FlagSettingMode;
70 using GFLAGS_NAMESPACE::SET_FLAGS_DEFAULT;
92 
93 #ifndef SWIG
95 #endif
96 
97 
98 } // namespace gflags
99 
100 
101 #endif // GFLAGS_NS_GFLAGS_H_
GFLAGS_DLL_DECL const char * VersionString()
Definition: gflags.cc:1531
GFLAGS_DLL_DECL uint64 Uint64FromEnv(const char *varname, uint64 defval)
Definition: gflags.cc:1812
GFLAGS_DLL_DECL const char * GetArgv0()
Definition: gflags.cc:1492
GFLAGS_DLL_DECL bool GetCommandLineOption(const char *name, std::string *OUTPUT)
FlagSaver()
GFLAGS_DLL_DECL const char * ProgramInvocationShortName()
Definition: gflags.cc:1497
int32_t int32
Definition: gflags_declare.h:80
GFLAGS_DLL_DECL bool RegisterFlagValidator(const bool *flag, bool(*validate_fn)(const char *, bool))
Definition: gflags.cc:1844
GFLAGS_DLL_DECL int32 Int32FromEnv(const char *varname, int32 defval)
Definition: gflags.cc:1806
uint32_t uint32
Definition: gflags_declare.h:81
SET_FLAG_IF_DEFAULT
Definition: gflags.h:227
GFLAGS_DLL_DECL void HandleCommandLineHelpFlags()
Definition: gflags_reporting.cc:371
GFLAGS_DLL_DECL void GetAllFlags(std::vector< CommandLineFlagInfo > *OUTPUT)
Definition: gflags.cc:1427
GFLAGS_DLL_DECL CommandLineFlagInfo GetCommandLineFlagInfoOrDie(const char *name)
Definition: gflags.cc:1585
uint64_t uint64
Definition: gflags_declare.h:83
GFLAGS_DLL_DECL std::string SetCommandLineOptionWithMode(const char *name, const char *value, FlagSettingMode set_mode)
Definition: gflags.cc:1594
GFLAGS_DLL_DECL std::string CommandlineFlagsIntoString()
Definition: gflags.cc:1728
GFLAGS_DLL_DECL uint32 ParseCommandLineNonHelpFlags(int *argc, char ***argv, bool remove_flags)
Definition: gflags.cc:1918
GFLAGS_DLL_DECL const char * GetArgv()
Definition: gflags.cc:1491
GFLAGS_DLL_DECL const char * ProgramInvocationName()
Definition: gflags.cc:1494
GFLAGS_DLL_DECL bool ReadFlagsFromString(const std::string &flagfilecontents, const char *prog_name, bool errors_are_fatal)
GFLAGS_DLL_DECL void SetArgv(int argc, const char **argv)
Definition: gflags.cc:1463
GFLAGS_DLL_DECL const char * ProgramUsage()
Definition: gflags.cc:1511
GFLAGS_DLL_DECL const std::vector< std::string > & GetArgvs()
Definition: gflags.cc:1490
SET_FLAGS_VALUE
Definition: gflags.h:227
GFLAGS_DLL_DECL int64 Int64FromEnv(const char *varname, int64 defval)
Definition: gflags.cc:1809
GFLAGS_DLL_DECL void AllowCommandLineReparsing()
Definition: gflags.cc:1936
GFLAGS_DLL_DECL double DoubleFromEnv(const char *varname, double defval)
Definition: gflags.cc:1815
GFLAGS_DLL_DECL uint32 ParseCommandLineFlags(int *argc, char ***argv, bool remove_flags)
Definition: gflags.cc:1914
GFLAGS_DLL_DECL void ShutDownCommandLineFlags()
Definition: gflags.cc:1955
GFLAGS_DLL_DECL bool AppendFlagsIntoFile(const std::string &filename, const char *prog_name)
GFLAGS_DLL_DECL uint32 GetArgvSum()
Definition: gflags.cc:1493
GFLAGS_DLL_DECL std::string SetCommandLineOption(const char *name, const char *value)
Definition: gflags.cc:1611
GFLAGS_DLL_DECL void ReparseCommandLineNonHelpFlags()
Definition: gflags.cc:1940
GFLAGS_DLL_DECL void ShowUsageWithFlags(const char *argv0)
Definition: gflags_reporting.cc:306
Definition: gflags_gflags.h:41
GFLAGS_DLL_DECL void SetUsageMessage(const std::string &usage)
GFLAGS_DLL_DECL const char * StringFromEnv(const char *varname, const char *defval)
Definition: gflags.cc:1823
GFLAGS_DLL_DECL bool ReadFromFlagsFile(const std::string &filename, const char *prog_name, bool errors_are_fatal)
GFLAGS_DLL_DECL void SetVersionString(const std::string &version)
GFLAGS_DLL_DECL bool GetCommandLineFlagInfo(const char *name, CommandLineFlagInfo *OUTPUT)
Definition: gflags.cc:1571
GFLAGS_DLL_DECL std::string DescribeOneFlag(const CommandLineFlagInfo &flag)
Definition: gflags_reporting.cc:119
GFLAGS_DLL_DECL bool BoolFromEnv(const char *varname, bool defval)
Definition: gflags.cc:1803
Definition: gflags.h:430
GFLAGS_DLL_DECL void ShowUsageWithFlagsRestrict(const char *argv0, const char *restrict)
Definition: gflags_reporting.cc:298
int64_t int64
Definition: gflags_declare.h:82