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
41namespace gflags {
42
43
44using GFLAGS_NAMESPACE::int32;
45using GFLAGS_NAMESPACE::uint32;
46using GFLAGS_NAMESPACE::int64;
47using GFLAGS_NAMESPACE::uint64;
48
49using GFLAGS_NAMESPACE::RegisterFlagValidator;
50using GFLAGS_NAMESPACE::CommandLineFlagInfo;
51using GFLAGS_NAMESPACE::GetAllFlags;
52using GFLAGS_NAMESPACE::ShowUsageWithFlags;
53using GFLAGS_NAMESPACE::ShowUsageWithFlagsRestrict;
54using GFLAGS_NAMESPACE::DescribeOneFlag;
55using GFLAGS_NAMESPACE::SetArgv;
56using GFLAGS_NAMESPACE::GetArgvs;
57using GFLAGS_NAMESPACE::GetArgv;
58using GFLAGS_NAMESPACE::GetArgv0;
59using GFLAGS_NAMESPACE::GetArgvSum;
60using GFLAGS_NAMESPACE::ProgramInvocationName;
61using GFLAGS_NAMESPACE::ProgramInvocationShortName;
62using GFLAGS_NAMESPACE::ProgramUsage;
63using GFLAGS_NAMESPACE::VersionString;
64using GFLAGS_NAMESPACE::GetCommandLineOption;
65using GFLAGS_NAMESPACE::GetCommandLineFlagInfo;
66using GFLAGS_NAMESPACE::GetCommandLineFlagInfoOrDie;
67using GFLAGS_NAMESPACE::FlagSettingMode;
68using GFLAGS_NAMESPACE::SET_FLAGS_VALUE;
69using GFLAGS_NAMESPACE::SET_FLAG_IF_DEFAULT;
70using GFLAGS_NAMESPACE::SET_FLAGS_DEFAULT;
71using GFLAGS_NAMESPACE::SetCommandLineOption;
72using GFLAGS_NAMESPACE::SetCommandLineOptionWithMode;
73using GFLAGS_NAMESPACE::FlagSaver;
74using GFLAGS_NAMESPACE::CommandlineFlagsIntoString;
75using GFLAGS_NAMESPACE::ReadFlagsFromString;
76using GFLAGS_NAMESPACE::AppendFlagsIntoFile;
77using GFLAGS_NAMESPACE::ReadFromFlagsFile;
78using GFLAGS_NAMESPACE::BoolFromEnv;
79using GFLAGS_NAMESPACE::Int32FromEnv;
80using GFLAGS_NAMESPACE::Uint32FromEnv;
81using GFLAGS_NAMESPACE::Int64FromEnv;
82using GFLAGS_NAMESPACE::Uint64FromEnv;
83using GFLAGS_NAMESPACE::DoubleFromEnv;
84using GFLAGS_NAMESPACE::StringFromEnv;
85using GFLAGS_NAMESPACE::SetUsageMessage;
86using GFLAGS_NAMESPACE::SetVersionString;
87using GFLAGS_NAMESPACE::ParseCommandLineNonHelpFlags;
88using GFLAGS_NAMESPACE::HandleCommandLineHelpFlags;
89using GFLAGS_NAMESPACE::AllowCommandLineReparsing;
90using GFLAGS_NAMESPACE::ReparseCommandLineNonHelpFlags;
91using GFLAGS_NAMESPACE::ShutDownCommandLineFlags;
92using GFLAGS_NAMESPACE::FlagRegisterer;
93
94#ifndef SWIG
95using GFLAGS_NAMESPACE::ParseCommandLineFlags;
96#endif
97
98
99} // namespace gflags
100
101
102#endif // GFLAGS_NS_GFLAGS_H_
103