Added RBA::Technology#clear_technologies

This commit is contained in:
Matthias Koefferlein 2019-05-10 23:24:04 +02:00
parent bfe5c7c2b9
commit 56f6143e4f
1 changed files with 10 additions and 0 deletions

View File

@ -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<db::Technology> 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"