Usage: you cannot implement this base interface directly. You must first derive it and then implement the derived interface.
interface CATIASettingController
Base interface to handle a setting controller for Automation.
Role: A setting controller manages the values of all or
only a part of the attributes available in a property page of the dialog
displayed using the Options command of the Tools menu.
CATIASettingController supplies the methods common to all setting controllers for the setting controller Automation implementation:
Commit
to make a memory copy of the setting attribute valuesRollback
to restore the last memory copy of the setting attribute valuesResetToAdminValues
to restore the administrated values of all the attributesResetToAdminValuesByName
to restore the administrated values of a subset of the attributesSaveRepository
to make a persistent copy of the setting attribute values on fileCATIASettingController must be implemented, through a derived interface that stands for the setting controller for Automation, by a V5 component, as follows:
Your setting controller V5 component should in addition implement the C++ interface
public virtual Commit( | ) |
Commit
saves the current values of the setting attributes
managed by the setting controller in a specific memory area.
Successive calls to Commit
overwrite the memory area.
The values saved by the last call to Commit
can be restored from that memory area
using the
method.
public virtual ResetToAdminValues( | ) |
ResetToAdminValues
restores all
the values of the setting attributes managed by the setting controller
to either the values set by the setting administrator, or to their default values
if the setting administrator did not change them.
public virtual ResetToAdminValuesByName( | const | iAttList) |
ResetToAdminValuesByName
restores
the values of a subset of the setting attributes managed by the setting controller
to either the values set by the setting administrator, or to their default values
if the setting administrator did not change them.
public virtual Rollback( | ) |
Rollback
restores the values of the
setting attributes managed by the setting controller from the
memory area.
All values of the setting attributes managed by the setting controller modified since the last call
to
are restored to the values they had when this last
was called.
public virtual SaveRepository( | ) |
SaveRepository
saves the current values of the
setting attributes managed by the setting controller in a setting repository file.
To avoid inconsistencies, SaveRepository
first saves the values in the memory area
used by the
method by calling
before writing the values in the setting repository file.
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.