This is a ISO/IEC C++ PSM (aka modern c++ api) wrapper for the FastDDS-API.
#include <fastdds_modern_cpp_api/dds/dds.hpp>
int main(int argc, char** argv) {
namespace dds = fastdds_modern_cpp_api::dds;
try {
dds::domain::DomainParticipant participant(0);
} catch (const std::exception& e) {
std::cout << "Exception: " << e.what() << std::endl;
return 1;
}
return 0;
}For more examples see subfolder examples.
Install FastDDS via installer.
mkdir build
cd build
cmake -DBUILD_EXAMPLES=ON -DOPENSSL_INCLUDE_DIR="C:\Program Files\OpenSSL-Win64\include" -DCMAKE_INSTALL_PREFIX=./install ..
cmake --build . --config Release --target installEveryone is welcome to participate, just make a pull-request.