All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---CATISysSettingController
Usage: you can reimplement this interface by deriving the supplied CATSysSettingController adapter class.
interface CATISysSettingController
Interface to handle the setting controller.
Role: This interface must be implemented by a component which
represents the controller of the setting repository and file.
Use the CATSysSettingController class to implement CATISysSettingController.
In most cases, you should not re-implement these methods, except if you create
a bufferized setting controller. Refer to the CAA Encyclopedia to know
about such controllers.
public virtual HRESULT Commit( | int | iNoEvent | =0) = 0 |
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
Rollback method.
public virtual HRESULT ResetToAdminValues( | char** | iAttList | =NULL, |
int | iNbAtt | =0) = 0 |
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 HRESULT Rollback( | )= 0 |
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
Commit are restored to the values they had when this last
Commit was called.
public virtual HRESULT SaveRepository( | const char* | itmp | =NULL) = 0 |
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
Commit method by calling
Commit before writing the values in the setting repository file.
Copyright © 2003, Dassault Systèmes. All rights reserved.