dpm c/c++ classes