CPP API for BaseX