Call Center SDK  1.11.3
version.h
1 #pragma once
2 
3 #include <string>
4 #include <iostream>
5 
6 #include <voicesdk/core/config.h>
7 
8 #define CCSDK_PROJECT_VERSION "1.11.3"
9 #define CCSDK_COMPONENTS "core media verify antispoof2"
10 #define CCSDK_GIT_INFO "1.11.3-0-g12df440"
11 
12 namespace voicesdk {
13 namespace callcenter {
14 
18  struct BuildInfo {
22  std::string version = CCSDK_PROJECT_VERSION;
23 
27  std::string components = CCSDK_COMPONENTS;
28 
32  std::string gitInfo = CCSDK_GIT_INFO;
33 
39  std::string licenseInfo;
40 
41  /*
42  * @brief License expiration date in YYYY-MM-DD format.
43  */
44  std::string licenseExpirationDate;
45 
46  friend std::ostream &operator<<(std::ostream& os, const BuildInfo& obj) {
47  os << "BuildInfo["
48  << "version: \"" << obj.version << "\", "
49  << "components: \"" << obj.components << "\", "
50  << "gitInfo: \"" << obj.gitInfo << "\", "
51  << "licenseInfo: \"" << obj.licenseInfo << "\", "
52  << "licenseExpirationDate: \"" << obj.licenseExpirationDate << "\"]";
53  return os;
54  }
55  };
56 
61  VOICE_SDK_API BuildInfo getBuildInfo() noexcept;
62 
63 } // end namespace callcenter
64 } // end namespace voicesdk
Structure containing present VoiceSDK CC build info.
Definition: version.h:18
std::string components
VoiceSDK CC components presented in build.
Definition: version.h:27
std::string licenseInfo
Information (e.g. expiration date) about the installed license if available or an empty string if no ...
Definition: version.h:39
std::string version
VoiceSDK CC build version.
Definition: version.h:22
std::string gitInfo
Git info dumped at the build stage.
Definition: version.h:32