| 402 | |
| 403 | |
| 404 | std::vector<FieldInfo> getFieldTypes(Session *session, |
| 405 | const std::vector<std::string> &fields) { |
| 406 | const std::string APIFLDS_SVC("//blp/apiflds"); |
| 407 | if (!session->openService(APIFLDS_SVC.c_str())) { |
| 408 | throw std::logic_error(std::string("Failed to open " + APIFLDS_SVC)); |
| 409 | } |
| 410 | Service fieldInfoService = session->getService(APIFLDS_SVC.c_str()); |
| 411 | std::vector<FieldInfo> ans; |
| 412 | for(auto field : fields) { |
| 413 | ans.push_back(getFieldType(session, fieldInfoService, field)); |
| 414 | } |
| 415 | return ans; |
| 416 | } |
| 417 | |
| 418 | Rcpp::List allocateDataFrame(const vector<string>& rownames, const vector<string>& colnames, vector<RblpapiT>& coltypes) { |
| 419 |
no test coverage detected