This API is currently available in C++ and Python.

std::string OEGetDesignUnitComponentNamesFromMask(const unsigned mask, const std::string& delimiter="|")

This function returns the names of the OEDesignUnit components from the input mask in a concatenated form with a delimiter. The input mask is assumed to be from the OEDesignUnitComponents namespace, otherwise “unknown” will be returned.