DataDirector API
Public Member Functions | List of all members
DDD_RevertableAttribute Class Reference

Revertable attribute; for dynamic attributes that can be reset to a default value. More...

#include <DDD_RevertableAttribute.h>

Public Member Functions

 DDD_RevertableAttribute (DDD_AttributeBase *defaultAttribute, DDD_AttributeBase *attribute)
 
DDD_AttributeBaseDefaultAttribute ()
 
DDD_AttributeBaseAttribute ()
 
void SetAttribute (DDD_AttributeBase *attribute)
 
void Revert ()
 

Detailed Description

Revertable attribute; for dynamic attributes that can be reset to a default value.

Constructor & Destructor Documentation

DDD_RevertableAttribute ( DDD_AttributeBase defaultAttribute,
DDD_AttributeBase attribute 
)
inline

Constructor

Member Function Documentation

DDD_AttributeBase* Attribute ( )
inline

Attribute accessor

Returns
attribute
DDD_AttributeBase* DefaultAttribute ( )
inline

DefaultAttribute accessor

Returns
default attribute
void Revert ( )

Reverts the state of this attribute.

Postcondition
_attribute should share the same value as _defaultAttribute
void SetAttribute ( DDD_AttributeBase attribute)
inline

Attribute mutator

Parameters
attributeAttribute instance to store in this class

The documentation for this class was generated from the following file: