Fixed #7 (Support "is_dirty?" predicate for RBA::CellView)

This commit is contained in:
Matthias Koefferlein 2017-03-29 22:13:09 +02:00
parent c6833b2b67
commit 3598898997
1 changed files with 16 additions and 0 deletions

View File

@ -1612,6 +1612,15 @@ static std::string filename (const lay::CellViewRef *cv)
}
}
static bool is_dirty (const lay::CellViewRef *cv)
{
if ((*cv).operator-> ()) {
return (*cv)->is_dirty ();
} else {
return false;
}
}
static void apply_technology (const lay::CellViewRef *cv, const std::string &tech)
{
if ((*cv).operator-> ()) {
@ -1816,6 +1825,13 @@ Class<lay::CellViewRef> decl_CellView ("CellView",
method_ext ("filename", &gsi::filename,
"@brief Gets filename associated with the layout behind the cellview\n"
) +
method_ext ("is_dirty?", &gsi::is_dirty,
"@brief Gets a flag indicating whether the layout needs saving\n"
"A layout is 'dirty' if it is modified and needs saving. This method returns "
"true in this case.\n"
"\n"
"This method has been introduced in version 0.24.10.\n"
) +
method_ext ("name", &gsi::name,
"@brief Gets the unique name associated with the layout behind the cellview\n"
) +