oaSetAttributeChangeRec Class Reference

Inheritance diagram for oaSetAttributeChangeRec:

oaAttributeChangeRec oaLeafChangeRec oaChangeRec


Public Methods

 oaSetAttributeChangeRec (oaChangeSetBase *changeSetIn, sr::srAttributeBase::SPtr valueIn)
virtual ~oaSetAttributeChangeRec ()
virtual const sd::sdAttributegetSchemaDefinition () const
virtual oaCMObjectRef::SPtr getOwner () const
sr::srAttributeBase::SPtr getValue () const
virtual void accept (oaChangeRecVisitor *visitor, oaBoolean forward=true)

Detailed Description

The oaSetAttributeChangeRec class represents a change record that captures information related to setting the value of an attribute.

Change records are used by the OpenAccess change management system (CMS).


Constructor & Destructor Documentation

oaSetAttributeChangeRec::oaSetAttributeChangeRec oaChangeSetBase *    changeSetIn,
sr::srAttributeBase::SPtr    valueIn
 

This constructor creates a change record for the operation of setting the value of an attribute on an object.

Parameters:
changeSetIn A pointer to the change set to contain the change record.
valueIn A smart pointer to the srAttributeBase object that represents the value of attribute.

oaSetAttributeChangeRec::~oaSetAttributeChangeRec   [virtual]
 

This is the oaSetAttributeChangeRec destructor.


Member Function Documentation

void oaSetAttributeChangeRec::accept oaChangeRecVisitor *    visitor,
oaBoolean    forward = true
[virtual]
 

This function accepts a change record visitor. It calls the visit function of the specified visitor on this object.

The forward parameter indicates the direction in which the change records are being visited. The forward parameter might be set to false if the goal of the visit is to roll back changes due to an undo command.

Parameters:
visitor A pointer to the change record visitor to call on this object.
forward Specifies the direction in which change records are being visited.

Implements oaChangeRec.

virtual oaCMObjectRef::SPtr oaSetAttributeChangeRec::getOwner   const [virtual]
 

This function returns a smart pointer to an oaCMObjectRef that is the owning object for the attribute that is the subject of this oaAttributeChangeRec.

Implements oaAttributeChangeRec.

sd::sdAttribute * oaSetAttributeChangeRec::getSchemaDefinition   const [virtual]
 

This function returns a pointer to the schema definition for the attribute that is the subject of this oaSetAttributeChangeRec.

Implements oaAttributeChangeRec.

sr::srAttributeBase::SPtr oaSetAttributeChangeRec::getValue   const
 

This function returns a smart pointer to the srAttributeBase object that represents the particular attribute that is the subject of this change record.


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

Return to top of page