C++ SDK for Linux
Once the installation of the C++ SDK for Linux is completed, it can be found under the /opt/aapm/sdk/cpp directory. Within these directories, developers will find the necessary header files to include while utilizing the SDK under the "include" folder, along with the aapm and grpc libraries required for communication with the AAPM agent located under the libs directory.
At this point, application developers can employ the C++ SDK by either relocating these two folders and their respective files to paths of their choice or by linking these paths from project configurations.
The C++ SDK is composed of two core libraries, aside from gRPC: libcpr.so and libaapm.so, compiled as dynamic libraries. For developers to enable their binaries to utilize these libraries, they must be copied into library directories such as /lib, /usr/lib, or /usr/local/lib. The structure of the sample project directories will be as follows:
The Makefile can be prepared in a standard format as follows:
When the ‘make’ command is executed from the command line, it results in the creation of a binary named ‘sample_application’, as demonstrated below.
The binary file can be run as follows: