PRELIMINARY-IMAGE 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 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 du. Returns true if an OEDesignUnit was read successfully, and false otherwise.

An overload is provided to take any arbitrary oeistream.

See also