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

Method GetMetaValue

src/log/logmetadata.cpp:84–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82//
83
84std::string LogMetaData::GetMetaValue(const std::string l,
85 const bool encaps_logtag,
86 const std::string postfix) const
87{
88 auto it = std::find_if(metadata.begin(),
89 metadata.end(),
90 [l](LogMetaDataValue::Ptr e)
91 {
92 return l == e->label;
93 });
94 if (metadata.end() == it)
95 {
96 return "";
97 }
98 return (*it)->GetValue(encaps_logtag) + postfix;
99}
100
101
102LogMetaData::Records LogMetaData::GetMetaDataRecords(const bool upcase_label,

Callers 1

TESTFunction · 0.80

Calls 1

GetValueMethod · 0.45

Tested by 1

TESTFunction · 0.64