66 std::set<std::string> input_libraries;
67 if(Param->isOption(OPT_input_libraries))
69 auto input_libs = Param->getOption<std::string>(OPT_input_libraries);
70 string_to_container(std::inserter(input_libraries, input_libraries.end()), input_libs,
";");
78 input_libraries.insert(library);
84 catch(
const char* msg)
86 THROW_ERROR(
"Error during technology file parsing: " + std::string(msg));
88 catch(
const std::string& msg)
90 THROW_ERROR(
"Error during technology file parsing: " + msg);
92 catch(
const std::exception& ex)
94 THROW_ERROR(
"Error during technology file parsing: " + std::string(ex.what()));
98 THROW_ERROR(
"Error during technology file parsing");
Input function used to read the technology data structures.
void read_technology_File(const std::string &fn, const technology_managerRef &TM, const ParameterConstRef &Param)
Read an xml file describing the technology data structures.
const std::vector< std::string > & get_library_list() const
Return the list of the libraries.
exceptions managed by PandA
Class specification of the manager of the technology library data structures.
void xload(const xml_element *node)
Load a technology manager from an xml file.
#define DESIGN
Autoheader include.
Class specification of the data structures used to manage technology information. ...
This file collects some utility functions and macros.
void Exec()
Parse an XML document from a file.
constexpr void string_to_container(_OutputIt first, const std::string &str, const std::string &separator, bool trim_empty=true)
#define THROW_ERROR(str_expr)
helper function used to throw an error in a standard way
#define WORK_LIBRARY
working library.
xml_documentRef get_document()
Obtain the parsed document.
this class is used to manage the command-line or XML options.
std::string container_to_string(_InputIt first, _InputIt last, const std::string &separator, bool trim_empty=true)
#define PROXY_LIBRARY
proxy library