MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / convertToDelimitedString

Function convertToDelimitedString

tools/excelRTD/RTDServer.cpp:334–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 typedef std::list<std::string> StringList;
333
334 std::string convertToDelimitedString(const StringList& list) {
335 std::stringstream os;
336
337 os << "{";
338
339 for (StringList::const_iterator iList = list.begin(); iList != list.end();
340 ++iList) {
341 if (iList != list.begin()) {
342 os << ", ";
343 }
344
345 os << "\"" << *iList << "\"";
346 }
347 os << "}";
348
349 return os.str();
350 }
351}
352
353/******************************************************************************

Callers 2

ConnectDataMethod · 0.85
RefreshDataMethod · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected