From 56f6143e4f1c29317a0e60d130977b2c1daa328d Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Fri, 10 May 2019 23:24:04 +0200 Subject: [PATCH] Added RBA::Technology#clear_technologies --- src/db/db/gsiDeclDbTechnologies.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/db/db/gsiDeclDbTechnologies.cc b/src/db/db/gsiDeclDbTechnologies.cc index a64378c85..061e1e433 100644 --- a/src/db/db/gsiDeclDbTechnologies.cc +++ b/src/db/db/gsiDeclDbTechnologies.cc @@ -70,6 +70,11 @@ static void technologies_from_xml (const std::string &s) db::Technologies::instance ()->load_from_xml (s); } +static void clear_technologies () +{ + db::Technologies::instance ()->clear (); +} + static db::Technology technology_from_xml (const std::string &s) { db::Technology tech; @@ -289,6 +294,11 @@ gsi::Class technology_decl ("db", "Technology", "\n" "\\technology_from_xml can be used to restore the technology definition." ) + + gsi::method ("clear_technologies", &clear_technologies, + "@brief Clears all technologies\n" + "\n" + "This method has been introduced in version 0.26.\n" + ) + gsi::method ("technologies_from_xml", &technologies_from_xml, gsi::arg ("xml"), "@brief Loads the technologies from a XML representation\n" "\n"