C++ APIs for BaseX