This is a preliminary API until 2020.Apr and may be improved based on user feedback. It is currently available in C++ and Python.
bool OEReadDesignUnitFromString(OEDesignUnit &du,
const std::string &input)
Reads the contents of the string input into an OEDesignUnit
Returns true if an OEDesignUnit was read successfully,
and false otherwise.