MCPcopy Create free account
hub / github.com/Rblp/Rblpapi / vectorToCSVString

Function vectorToCSVString

src/blpapi_utils.cpp:259–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259std::string vectorToCSVString(const std::vector<std::string>& vec) {
260 if(vec.empty()) {
261 return std::string();
262 } else {
263 std::ostringstream oss;
264 std::copy(vec.begin(), vec.end()-1,std::ostream_iterator<std::string>(oss, ","));
265 oss << vec.back();
266 return oss.str();
267 }
268}
269
270// map to RblpapiT using datatype and ftype
271// both are needed b/c datatype does not distinguish between date and datetime

Callers 1

subscribe_ImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected