SBSManip C++ port