direct exposing c++ class