MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / GetOptions

Method GetOptions

src/common/configfileparser.cpp:157–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156
157std::vector<std::string> File::GetOptions(bool all_configured)
158{
159 configure_mapping();
160
161 std::vector<std::string> opts;
162 for (const auto &e : map)
163 {
164 if (e.present || all_configured)
165 {
166 if ((OptionValueType::Present == e.type)
167 || (!e.value.empty()) || all_configured)
168 {
169 opts.push_back(e.option);
170 }
171 }
172 }
173 return opts;
174}
175
176
177bool File::IsPresent(const std::string &key)

Callers 4

TEST_FFunction · 0.80
ImportConfigFileMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by 1

TEST_FFunction · 0.64