if(initialize()) {
setBaseFeature(theBaseFeature);
setRecoveredList(theRecoveredList);
- setIsPersistent(thePersistent);
}
}
// do not need to execute because on attribute changed it does everything anyway
}
-//=================================================================================================
-void FeaturesAPI_Recover::setIsPersistent(bool thePersistent)
-{
- fillAttribute(thePersistent, myisPersistent);
- // do not need to execute because on attribute changed it does everything anyway
-}
-
//==================================================================================================
void FeaturesAPI_Recover::dump(ModelHighAPI_Dumper& theDumper) const
{
aBase->reference(FeaturesPlugin_Recover::BASE_FEATURE());
AttributeRefListPtr anAttrRecoveredEntities =
aBase->reflist(FeaturesPlugin_Recover::RECOVERED_ENTITIES());
- AttributeBooleanPtr anAttrPersistent = aBase->boolean(FeaturesPlugin_Recover::PERSISTENT());
FeaturePtr aFeature = ModelAPI_Feature::feature(anAttrBaseFeature->value());
theDumper << aBase << " = model.addRecover(" << aDocName << ", "
- << aFeature << ", " << anAttrRecoveredEntities << ", "
- << anAttrPersistent << ")" << std::endl;
+ << aFeature << ", " << anAttrRecoveredEntities << ")" << std::endl;
}
//=================================================================================================