This API is currently available in C++ and Python.
bool OEReadDesignUnit(const std::string &fname, OEDesignUnit &du) bool OEReadDesignUnit(OEPlatform::oeistream &ifs, OEDesignUnit &du, unsigned type)
Read the contents of the file named
fname into an OEDesignUnit named
true if an OEDesignUnit was read successfully, and
An overload is provided to take any arbitrary oeistream.