| 257 | } |
| 258 | |
| 259 | std::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 |