MCPcopy Create free account
hub / github.com/apache/qpid-proton / default_file

Function default_file

cpp/src/connect_config.cpp:258–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258string default_file() {
259 std::string name;
260 std::ifstream f;
261 bool good = config_file(f, name);
262 f.close();
263 if (good || name!=ETC_FILE_NAME) {
264 return name;
265 }
266 throw err("no default configuration, last tried: " + name);
267}
268
269string parse_default(connection_options& opts) {
270 std::string name;

Callers 1

test_default_fileFunction · 0.70

Calls 3

config_fileFunction · 0.85
errFunction · 0.85
closeMethod · 0.45

Tested by 1

test_default_fileFunction · 0.56