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

Function getFieldTypes

src/blpapi_utils.cpp:404–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402
403
404std::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
418Rcpp::List allocateDataFrame(const vector<string>& rownames, const vector<string>& colnames, vector<RblpapiT>& coltypes) {
419

Callers 3

fieldInfo_ImplFunction · 0.85
bdp_ImplFunction · 0.85
bdh_ImplFunction · 0.85

Calls 1

getFieldTypeFunction · 0.85

Tested by

no test coverage detected