parse.h
Go to the documentation of this file.
00001 //
00002 // Copyright 2019 The Abseil Authors.
00003 //
00004 // Licensed under the Apache License, Version 2.0 (the "License");
00005 // you may not use this file except in compliance with the License.
00006 // You may obtain a copy of the License at
00007 //
00008 //      https://www.apache.org/licenses/LICENSE-2.0
00009 //
00010 // Unless required by applicable law or agreed to in writing, software
00011 // distributed under the License is distributed on an "AS IS" BASIS,
00012 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013 // See the License for the specific language governing permissions and
00014 // limitations under the License.
00015 
00016 #ifndef ABSL_FLAGS_INTERNAL_PARSE_H_
00017 #define ABSL_FLAGS_INTERNAL_PARSE_H_
00018 
00019 #include <string>
00020 #include <vector>
00021 
00022 #include "absl/flags/declare.h"
00023 
00024 ABSL_DECLARE_FLAG(std::vector<std::string>, flagfile);
00025 ABSL_DECLARE_FLAG(std::vector<std::string>, fromenv);
00026 ABSL_DECLARE_FLAG(std::vector<std::string>, tryfromenv);
00027 ABSL_DECLARE_FLAG(std::vector<std::string>, undefok);
00028 
00029 namespace absl {
00030 namespace flags_internal {
00031 
00032 enum class ArgvListAction { kRemoveParsedArgs, kKeepParsedArgs };
00033 enum class UsageFlagsAction { kHandleUsage, kIgnoreUsage };
00034 enum class OnUndefinedFlag {
00035   kIgnoreUndefined,
00036   kReportUndefined,
00037   kAbortIfUndefined
00038 };
00039 
00040 std::vector<char*> ParseCommandLineImpl(int argc, char* argv[],
00041                                         ArgvListAction arg_list_act,
00042                                         UsageFlagsAction usage_flag_act,
00043                                         OnUndefinedFlag on_undef_flag);
00044 
00045 }  // namespace flags_internal
00046 }  // namespace absl
00047 
00048 #endif  // ABSL_FLAGS_INTERNAL_PARSE_H_


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:15