MCPcopy Create free account
hub / github.com/comaps/comaps / ToString

Method ToString

libs/indexer/feature_charge_sockets.cpp:316–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316std::string ChargeSocketsHelper::ToString()
317{
318 if (m_dirty)
319 Sort();
320
321 std::ostringstream oss;
322
323 for (size_t i = 0; i < m_chargeSockets.size(); ++i)
324 {
325 auto const & desc = m_chargeSockets[i];
326
327 oss << desc.type << "|";
328 if (desc.count > 0)
329 oss << desc.count;
330 oss << "|";
331 if (desc.power > 0)
332 oss << desc.power;
333
334 if (i + 1 < m_chargeSockets.size())
335 oss << ";";
336 }
337 return oss.str();
338}
339
340OSMKeyValues ChargeSocketsHelper::GetOSMKeyValues()
341{

Callers

nothing calls this directly

Calls 2

SortFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected