C++ wrapper for C Interface