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"