' 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]]
| 60 | //' } |
| 61 | // [[Rcpp::export]] |
| 62 | std::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 | //' |
no outgoing calls
no test coverage detected