How to change tango host in C++ code?

Java has

ApiUtil.change_db_obj()

API, but C++ not the corresponding API, how to change tango host in C++ code?