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

Function getHeaderVersion

src/blpVersion.cpp:62–79  ·  view source on GitHub ↗

' This function retrieves the version of Bloomberg API headers. ' ' @title Get Bloomberg library header version ' @return A string with four dot-separated values for major, minor, ' pathch and build version of the headers. ' @author Dirk Eddelbuettel ' @seealso \code{getRuntimeVersion} ' @examples ' \dontrun{ ' getHeaderVersion() ' } [[Rcpp::export]]

Source from the content-addressed store, hash-verified

60//' }
61// [[Rcpp::export]]
62std::string getHeaderVersion() {
63 // VersionInfo vi = VersionInfo::headerVersion();
64 // //Rcpp::Rcout << vi << std::endl;
65 // char txt[128];
66 // snprintf(txt, 127, "%d.%d.%d.%d",
67 // vi.majorVersion(),
68 // vi.minorVersion(),
69 // vi.patchVersion(),
70 // vi.buildVersion());
71
72 char txt[128];
73 snprintf(txt, 127, "%d.%d.%d.%d",
74 BLPAPI_VERSION_MAJOR,
75 BLPAPI_VERSION_MINOR,
76 BLPAPI_VERSION_PATCH,
77 BLPAPI_VERSION_BUILD);
78 return std::string(txt);
79}
80
81//' This function retrieves the version of Bloomberg API run-time.
82//'

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected