OEReadDesignUnit

Attention

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

An overload is provided to take any arbitrary oeistream.

See also