Home | History | Annotate | Download | only in gflags

Lines Matching refs:string

81 #include <string>
135 extern GFLAGS_DLL_DECL bool RegisterFlagValidator(const std::string* flag, bool (*validate_fn)(const char*, const std::string&));
156 std::string name; // the name of the flag
157 std::string type; // the type of the flag: int32, etc
158 std::string description; // the "help text" associated with the flag
159 std::string current_value; // the current value, as a string
160 std::string default_value; // the default value, as a string
161 std::string filename; // 'cleaned' version of filename holding the flag
179 // Create a descriptive string for a flag.
181 extern GFLAGS_DLL_DECL std::string DescribeOneFlag(const CommandLineFlagInfo& flag);
188 extern GFLAGS_DLL_DECL const std::vector<std::string>& GetArgvs();
189 extern GFLAGS_DLL_DECL const char* GetArgv(); // all of argv as a string
197 extern GFLAGS_DLL_DECL const char* ProgramUsage(); // string set by SetUsageMessage()
201 extern GFLAGS_DLL_DECL const char* VersionString(); // string set by SetVersionString()
215 extern GFLAGS_DLL_DECL bool GetCommandLineOption(const char* name, std::string* OUTPUT);
238 // Set a particular flag ("command line option"). Returns a string
246 extern GFLAGS_DLL_DECL std::string SetCommandLineOption (const char* name, const char* value);
247 extern GFLAGS_DLL_DECL std::string SetCommandLineOptionWithMode(const char* name, const char* value, FlagSettingMode set_mode);
294 extern GFLAGS_DLL_DECL std::string CommandlineFlagsIntoString();
297 bool ReadFlagsFromString(const std::string& flagfilecontents,
303 extern GFLAGS_DLL_DECL bool AppendFlagsIntoFile(const std::string& filename, const char* prog_name);
304 extern GFLAGS_DLL_DECL bool ReadFromFlagsFile(const std::string& filename, const char* prog_name, bool errors_are_fatal); // uses SET_FLAGS_VALUE
328 // string usage("This program does nothing. Sample usage:\n");
333 extern GFLAGS_DLL_DECL void SetUsageMessage(const std::string& usage);
335 string, which is emitted with --version.
338 extern GFLAGS_DLL_DECL void SetVersionString(const std::string& version);
489 // value is actually a bool, and not a string or something that can be
537 // the string, which we can static-initialize, and then placement-new
553 // Auxiliary class used to explicitly call destructor of string objects
575 // --string and --nostring. And we need a temporary place to put val