oaChangeSet Class Reference

Inheritance diagram for oaChangeSet:

oaChangeSetBase


Public Methods

 oaChangeSet (const oaString &name)
 ~oaChangeSet ()
virtual oaHierChangeRecgetCurrentChangeRec (oaCMDatabaseRef::SPtr database)
virtual oaHierChangeRecbeginChangeRec (oaCMDatabaseRef::SPtr database)
virtual void endChangeRec (oaCMDatabaseRef::SPtr database)
virtual void addChangeRec (oaLeafChangeRec *lcr)
virtual void rollBackChangeRecs (oaCMDatabaseRef::SPtr dbRef, oaMarkerChangeRec *target=NULL, oaBoolean inclusive=false)
virtual bool removeChangeRec (oaCMDatabaseRef::SPtr dbRef, oaLeafChangeRec *rec)
virtual void passivateRefs (oaCMDatabaseRef::SPtr dbRef)
virtual oaSetAttributeChangeRecallocSetAttributeChangeRec (sr::srAttributeBase::SPtr value)
virtual oaUnsetAttributeChangeRecallocUnsetAttributeChangeRec (oaCMObjectRef::SPtr owner, sd::sdAttribute *attr)
virtual oaCreate1to1RelationshipChangeRecallocCreate1to1RelationshipChangeRec (sr::sr1to1Relationship::SPtr value)
virtual oaCreate1toNRelationshipChangeRecallocCreate1toNRelationshipChangeRec (sr::sr1toNRelationship::SPtr value)
virtual oaDestroy1to1RelationshipChangeRecallocDestroy1to1RelationshipChangeRec (sr::sr1to1Relationship::SPtr value)
virtual oaDestroy1toNRelationshipChangeRecallocDestroy1toNRelationshipChangeRec (sr::sr1toNRelationship::SPtr value)
virtual oaCreateObjectChangeRecallocCreateObjectChangeRec (oaCMObjectRef::SPtr object, oaCMObjectStateEntry::SPtr state)
virtual oaDestroyObjectChangeRecallocDestroyObjectChangeRec (oaCMObjectRef::SPtr object)
virtual oaConvertObjectChangeRecallocConvertObjectChangeRec (oaCMObjectRef::SPtr object, oaCMObjectRef::SPtr newObject)
virtual oaHierChangeRecallocHierChangeRec ()
virtual oaMarkerChangeRecfindLastMarkerChangeRec (oaMarkerChangeRecTypeEnum typeIn, oaCMDatabaseRef::SPtr dbRef)
virtual oaConvertObjectChangeRecfindLastConvertObjectChangeRec (oaHierChangeRec *hcr) const
virtual oaExportMarkerChangeRecallocExportMarkerChangeRec (oaMarkerChangeRecTypeEnum typeIn, oaCMDatabaseRef::SPtr dbRef)
virtual oaTransientMarkerChangeRecallocTransientMarkerChangeRec (oaMarkerChangeRecTypeEnum typeIn, oaCMDatabaseRef::SPtr dbRef)
virtual oaMarkerChangeReccloneMarkerChangeRec (oaExportMarkerChangeRec &cr)
virtual oaMarkerChangeReccloneMarkerChangeRec (oaTransientMarkerChangeRec &cr)
virtual oaCMDatabaseRef::SPtr findDatabaseRef (void *obj) const
virtual oaCMDatabaseRef::SPtr allocDatabaseRef (void *obj, const sd::sdObject *sd, oaBoolean isNew=false)
virtual oaCMObjectIDRef::SPtr findObjectIDRef (oaCMDatabaseRef::SPtr database, void *obj) const
virtual oaCMObjectIDRef::SPtr allocObjectIDRef (oaCMDatabaseRef::SPtr database, void *obj, const sd::sdObject *sd, oaBoolean isNew=false, oaCMObjectRef::SPtr scope=NULL)
virtual oaCMObjectStateRef::SPtr findObjectStateRef (oaCMDatabaseRef::SPtr database, void *obj) const
virtual oaCMObjectStateRef::SPtr allocObjectStateRef (oaCMDatabaseRef::SPtr database, void *obj, const sd::sdObject *sd, oaBoolean isNew=false, oaCMObjectRef::SPtr scope=NULL)
virtual oaCMStringEntry::SPtr findStringEntry (oaCMDatabaseRef::SPtr database, const oaString &string)
virtual oaCMStringEntry::SPtr allocStringEntry (oaCMDatabaseRef::SPtr database, const oaString &string)
virtual oaCMObjectStateEntry::SPtr allocObjectStateEntry (oaCMDatabaseRef::SPtr database, const sd::sdObject *def, const sr::srObjectState::AttributeMap &attributes, const sr::srObjectState::RelationshipMap &relationships)
virtual void accept (oaChangeSetVisitor *visitor)
virtual void accept (oaChangeRecVisitor *visitor, oaTimeStamp minAge=0)
virtual void getName (oaString &name) const
virtual oaTimeStamp getTimeStamp () const
virtual oaBoolean isActive () const
virtual void setActive (oaBoolean state)
virtual oaBoolean isExported () const
virtual void setExported ()
oaCMDatabaseTbl::DatabaseRefConstIter beginDatabaseRefs () const
oaCMDatabaseTbl::DatabaseRefConstIter endDatabaseRefs () const
oaCMObjectRefTbl::ObjectRefConstIter beginObjectRefs (oaCMDatabaseRef::SPtr database) const
oaCMObjectRefTbl::ObjectRefConstIter endObjectRefs (oaCMDatabaseRef::SPtr database) const
oaCMObjectStateTbl::ObjectStateEntryConstIter beginObjectStates (oaCMDatabaseRef::SPtr database) const
oaCMObjectStateTbl::ObjectStateEntryConstIter endObjectStates (oaCMDatabaseRef::SPtr database) const
oaCMStringTbl::StringEntryConstIter beginStrings (oaCMDatabaseRef::SPtr database) const
oaCMStringTbl::StringEntryConstIter endStrings (oaCMDatabaseRef::SPtr database) const
virtual oaChangeRecallocAttributeChangeRec (sr::srAttributeBase::SPtr value, sd::sdAttributeActionType action, sd::sdAttributeContainerType type)
virtual oaChangeRecallocRelationshipChangeRec (sr::srRelationshipBase::SPtr value, sd::sdRelationshipActionType action, sd::sdRelationshipContainerType type)

Detailed Description

A change set manages individual change records, which represent changes made to a design. The oaChangeSet and oaChangeRec classes are involved in the communication between tracking and export plug-ins in the OpenAccess change management system (CMS).

Change tracking is global across all open designs in the session. The change set preserves the order of creation of change records, which is reflected at the time of traversal. Change sets provide sequencing of change records, which is needed when an export plug-in emits change records to an external representation. Database-level changes such as open, purge, and undo/redo are reflected in the change set.

Users of a change set can add change records to the change set with the addChangeRec function. References to public objects are stored in change records. These references cannot be stored directly in the form of database-specific handles (like public object pointers) because they might become invalid if the object is destroyed during the span of the change set. OpenAccess CMS provides an additional layer of abstraction that preserves references to live objects as well as objects that have been destroyed. This functionality is provided by the oaCMObjectRef class and its derived classes.

A change set manages all the oaCMObjectRefs used in change records. The change set also manages the following objects used by those oaCMObjectRefs:

A tracking plug-in creates an oaChangeSet instantiation when a change set is opened by the application (through the oaChangeMgr::beginTracking call). The oaChangeMgr owns the change set through its lifetime after it has been created and passed to oaChangeMgr by the plug-in or the application.

Building a change set includes setting the header information, such as name and attributes, and aggregating change records into the change set.

The client can destroy a change set by finding the change set by name and explicitly deleting the returned pointer. The process of deleting a change set removes it from the oaChangeMgr. The client can also delete a change set directly, which also removes it from the oaChangeMgr.

The oaChangeSet class supports a visitor pattern interface to traverse the contents. Several oaChangeSet::accept functions provide access for change set visitors. These accept functions call the visit function of the specified visitor on the object. This interface provides access to the oaChangeSet object itself and some of its components. A plug-in implementation can extend oaChangeSet by creating a class derived from it. A derived oaChangeSet class must implement a derived interface for the visitor pattern, which visits the derived class and accesses any component specific to the derived class.


Constructor & Destructor Documentation

oaChangeSet::oaChangeSet const oaString &    name
 

This is the oaChangeSet constructor.

Parameters:
name The name for the change set.

oaChangeSet::~oaChangeSet  
 

This is the oaChangeSet destructor.


Member Function Documentation

void oaChangeSet::accept oaChangeRecVisitor *    visitor,
oaTimeStamp    minAge = 0
[virtual]
 

This function accepts a change record visitor and enables the visitor to access all the change records managed by this change set.

Parameters:
visitor A pointer to the visitor to call on this object.
minAge A timestamp that specifies the minimum age of the change records to visit.

Implements oaChangeSetBase.

void oaChangeSet::accept oaChangeSetVisitor *    visitor [virtual]
 

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

The visitor decides on the actions to take on the change set and its components. The visitor can retrieve the simple components directly and act on those data. It can also originate the traversal on the complex components in the change set by calling oaChangeSet::accept(oaChangeRecVisitor *visitor).

Parameters:
visitor A pointer to the visitor to call on this object.

Implements oaChangeSetBase.

void oaChangeSet::addChangeRec oaLeafChangeRec *    lcr [virtual]
 

This function adds a leaf change record to the change set if there is no top-level hierarchical change record.

Parameters:
lcr Pointer to the leaf change record to add to the change set.

Implements oaChangeSetBase.

virtual oaChangeRec* oaChangeSet::allocAttributeChangeRec sr::srAttributeBase::SPtr    value,
sd::sdAttributeActionType    action,
sd::sdAttributeContainerType    type
[virtual]
 

Implements oaChangeSetBase.

oaConvertObjectChangeRec * oaChangeSet::allocConvertObjectChangeRec oaCMObjectRef::SPtr    object,
oaCMObjectRef::SPtr    newObject
[virtual]
 

This function returns a pointer to an allocation record of the oaConvertObjectChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
object A smart pointer to an object reference for the object before type-conversion.
newObject A smart pointer to the new object reference after type-conversion.

Implements oaChangeSetBase.

oaCreate1to1RelationshipChangeRec * oaChangeSet::allocCreate1to1RelationshipChangeRec sr::sr1to1Relationship::SPtr    value [virtual]
 

This function returns a pointer to an allocation record of the Create1to1RelationshipChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
value A smart pointer to the 1-to-1 relationship.

Implements oaChangeSetBase.

oaCreate1toNRelationshipChangeRec * oaChangeSet::allocCreate1toNRelationshipChangeRec sr::sr1toNRelationship::SPtr    value [virtual]
 

This function returns a pointer to an allocation record of the Create1toNRelationshipChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
value A smart pointer to the 1-to-N relationship.

Implements oaChangeSetBase.

oaCreateObjectChangeRec * oaChangeSet::allocCreateObjectChangeRec oaCMObjectRef::SPtr    object,
oaCMObjectStateEntry::SPtr    state
[virtual]
 

This function returns a pointer to an allocation record of the oaCreateObjectChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
object A smart pointer to an object reference.
state A smart pointer to an oaCMObjectStateEntry, which identifies an object according to a set of unique attributes.

Implements oaChangeSetBase.

oaCMDatabaseRef::SPtr oaChangeSet::allocDatabaseRef void *    obj,
const sd::sdObject *    sd,
oaBoolean    isNew = false
[virtual]
 

This function returns a smart pointer to an allocation record of the oaCMDatabaseRef type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
obj A pointer to the object.
sd The schema definition of the database object.
isNew A boolean that indicates whether or not this object is a newly created object.

Implements oaChangeSetBase.

oaDestroy1to1RelationshipChangeRec * oaChangeSet::allocDestroy1to1RelationshipChangeRec sr::sr1to1Relationship::SPtr    value [virtual]
 

This function returns a pointer to an allocation record of the oaDestroy1to1RelationshipChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
value A smart pointer to the 1-to-1 relationship that was destroyed.

Implements oaChangeSetBase.

oaDestroy1toNRelationshipChangeRec * oaChangeSet::allocDestroy1toNRelationshipChangeRec sr::sr1toNRelationship::SPtr    value [virtual]
 

This function returns a pointer to an allocation record of the oaDestroy1toNRelationshipChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
value A smart pointer to the 1-to-N relationship that was destroyed.

Implements oaChangeSetBase.

oaDestroyObjectChangeRec * oaChangeSet::allocDestroyObjectChangeRec oaCMObjectRef::SPtr    object [virtual]
 

This function returns a pointer to an allocation record of the oaDestroyObjectChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
object A smart pointer to the object reference for an object that was destroyed.

Implements oaChangeSetBase.

oaMarkerChangeRec * oaChangeSet::allocExportMarkerChangeRec oaMarkerChangeRecTypeEnum    typeIn,
oaCMDatabaseRef::SPtr    dbRef
[virtual]
 

This function returns a pointer to an allocation record of the oaMarkerChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
typeIn The type of the change marker.
dbRef A smart pointer to the database reference.

Implements oaChangeSetBase.

oaHierChangeRec * oaChangeSet::allocHierChangeRec   [virtual]
 

This function returns a pointer to an allocation record of the oaHierChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Implements oaChangeSetBase.

oaCMObjectIDRef::SPtr oaChangeSet::allocObjectIDRef oaCMDatabaseRef::SPtr    database,
void *    obj,
const sd::sdObject *    sd,
oaBoolean    isNew = false,
oaCMObjectRef::SPtr    scope = NULL
[virtual]
 

This function returns a smart pointer to an allocation record of the oaCMObjectIDRef type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
database Smart pointer to the database reference.
obj A pointer to an object.
sd The schema definition of the object.
isNew A boolean that indicates whether or not this object is a newly created object.
scope The scope within the database to which the object belongs.

Implements oaChangeSetBase.

oaCMObjectStateEntry::SPtr oaChangeSet::allocObjectStateEntry oaCMDatabaseRef::SPtr    database,
const sd::sdObject *    def,
const sr::srObjectState::AttributeMap &    attributes,
const sr::srObjectState::RelationshipMap &    relationships
[virtual]
 

This function returns a smart pointer to an allocation record of the oaCMObjectStateEntry type.

Parameters:
database A smart pointer to a database reference object.
def The schema definition of the object.
attributes The attributes of the object state.
relationships The relationships of the object state.

Implements oaChangeSetBase.

oaCMObjectStateRef::SPtr oaChangeSet::allocObjectStateRef oaCMDatabaseRef::SPtr    database,
void *    obj,
const sd::sdObject *    sd,
oaBoolean    isNew = false,
oaCMObjectRef::SPtr    scope = NULL
[virtual]
 

This function returns a smart pointer to an allocation record of the oaCMObjectStateRef type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
database A smart pointer to a database reference object.
obj A pointer to an object.
sd The schema definition of the object.
isNew A boolean that indicates whether or not this object is a newly created object.
scope The scope within the database to which the object belongs.

Implements oaChangeSetBase.

virtual oaChangeRec* oaChangeSet::allocRelationshipChangeRec sr::srRelationshipBase::SPtr    value,
sd::sdRelationshipActionType    action,
sd::sdRelationshipContainerType    type
[virtual]
 

Implements oaChangeSetBase.

oaSetAttributeChangeRec * oaChangeSet::allocSetAttributeChangeRec sr::srAttributeBase::SPtr    value [virtual]
 

This function returns a pointer to an allocation record of the SetAttributeChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
value A smart pointer to the srAttribute.

Implements oaChangeSetBase.

oaCMStringEntry::SPtr oaChangeSet::allocStringEntry oaCMDatabaseRef::SPtr    database,
const oaString &    string
[virtual]
 

This function returns a smart pointer to an allocation record of the oaCMStringEntry type.

Parameters:
database A smart pointer to a database reference object.
string The string to be contained in the string entry.

Implements oaChangeSetBase.

oaMarkerChangeRec * oaChangeSet::allocTransientMarkerChangeRec oaMarkerChangeRecTypeEnum    typeIn,
oaCMDatabaseRef::SPtr    dbRef
[virtual]
 

This function returns a pointer to an allocation record of the oaMarkerChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
typeIn The type of the change marker.
dbRef A smart pointer to the database reference.

Implements oaChangeSetBase.

oaUnsetAttributeChangeRec * oaChangeSet::allocUnsetAttributeChangeRec oaCMObjectRef::SPtr    owner,
sd::sdAttribute *    attr
[virtual]
 

This function returns a pointer to an allocation record of the UnsetAttributeChangeRec type. Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class.

Parameters:
owner A smart pointer to the object reference for the object whose attribute was unset.
attr A pointer to the schema definition for the attribute of an object.

Implements oaChangeSetBase.

oaHierChangeRec * oaChangeSet::beginChangeRec oaCMDatabaseRef::SPtr    database [virtual]
 

This function begins a new hierarchical change record on the specified database. It inserts an empty hierarchical change record as a child to the current change record. If there’s no current change record, then it adds an empty hierarchical change record to the top level. In either case, the empty hierarchical change record is set as the current change record.

Parameters:
database A smart pointer to the database reference.

Implements oaChangeSetBase.

oaCMDatabaseTbl::ConstIter oaChangeSet::beginDatabaseRefs   const
 

This function returns the constant iterator that points to the first database reference in this change set.

oaCMObjectRefTbl::ConstIter oaChangeSet::beginObjectRefs oaCMDatabaseRef::SPtr    database const
 

This function returns the constant iterator that points to the first object reference in the specified database in the change set.

Parameters:
database A smart pointer to the database of interest.

oaCMObjectStateTbl::ConstIter oaChangeSet::beginObjectStates oaCMDatabaseRef::SPtr    database const
 

This function returns the constant iterator that points to the first object state in the specified database in this change set.

Parameters:
database A smart pointer to the database of interest.

oaCMStringTbl::ConstIter oaChangeSet::beginStrings oaCMDatabaseRef::SPtr    database const
 

This function returns the constant iterator that points to the first string in the specified database in this change set.

Parameters:
database A smart pointer to the database of interest.

oaMarkerChangeRec * oaChangeSet::cloneMarkerChangeRec oaTransientMarkerChangeRec &    cr [virtual]
 

This function creates an exact copy of the specified oaTransientMarkerChangeRec, including an identical timestamp.

Parameters:
cr The oaTransientMarkerChangeRec to clone.

Implements oaChangeSetBase.

oaMarkerChangeRec * oaChangeSet::cloneMarkerChangeRec oaExportMarkerChangeRec &    cr [virtual]
 

This function creates an exact copy of the specified oaExportMarkerChangeRec, including an identical timestamp.

Parameters:
cr The oaExportMarkerChangeRec to clone.

Implements oaChangeSetBase.

void oaChangeSet::endChangeRec oaCMDatabaseRef::SPtr    database [virtual]
 

This function ends the current hierarchical change record on the specified database. This function concludes the current change record. It collapses the current change record to a leaf-level change record if it has only one child, then it resets the current change record pointer to the parent of the current one, or sets it to NULL if it has no parent.

Parameters:
database A smart pointer to the database reference.

Implements oaChangeSetBase.

oaCMDatabaseTbl::ConstIter oaChangeSet::endDatabaseRefs   const
 

This function returns the constant iterator that points to the last database reference in this change set.

oaCMObjectRefTbl::ConstIter oaChangeSet::endObjectRefs oaCMDatabaseRef::SPtr    database const
 

This function returns the constant iterator that points to the last object reference in the specified database in this change set.

Parameters:
database A smart pointer to the database of interest.

oaCMObjectStateTbl::ConstIter oaChangeSet::endObjectStates oaCMDatabaseRef::SPtr    database const
 

This function returns the constant iterator that points to the last object state in the specified database in this change set.

Parameters:
database A smart pointer to the database of interest.

oaCMStringTbl::ConstIter oaChangeSet::endStrings oaCMDatabaseRef::SPtr    database const
 

This function returns the constant iterator that points to the last string in the specified database in this change set.

Parameters:
database A smart pointer to the database of interest.

oaCMDatabaseRef::SPtr oaChangeSet::findDatabaseRef void *    obj const [virtual]
 

This function attempts to find the database reference object managed by this change set.

Parameters:
obj A pointer to an object.

Implements oaChangeSetBase.

oaConvertObjectChangeRec * oaChangeSet::findLastConvertObjectChangeRec oaHierChangeRec *    hcr const [virtual]
 

This function finds the last oaConvertObjectChangeRec in the list of change records associated with the hcr hierarchical change record. NULL is returned if one is not found.

Parameters:
hcr A pointer to the hierarchical change record.

Implements oaChangeSetBase.

oaMarkerChangeRec * oaChangeSet::findLastMarkerChangeRec oaMarkerChangeRecTypeEnum    typeIn,
oaCMDatabaseRef::SPtr    dbRef
[virtual]
 

This function returns the last oaMarkerChangeRec of type typeIn on the list of change records associated with the specified database reference.

Parameters:
typeIn Type of the oaMarkerChangeRec.
dbRef A smart pointer to the database reference.

Implements oaChangeSetBase.

oaCMObjectIDRef::SPtr oaChangeSet::findObjectIDRef oaCMDatabaseRef::SPtr    database,
void *    obj
const [virtual]
 

This function attempts to find the ID reference object managed by this change set.

Parameters:
database A smart pointer to the database reference.
obj A pointer to an object.

Implements oaChangeSetBase.

oaCMObjectStateRef::SPtr oaChangeSet::findObjectStateRef oaCMDatabaseRef::SPtr    database,
void *    obj
const [virtual]
 

This function attempts to find the state reference object managed by this change set.

Parameters:
database A smart pointer to a database reference object.
obj A pointer to an object.

Implements oaChangeSetBase.

oaCMStringEntry::SPtr oaChangeSet::findStringEntry oaCMDatabaseRef::SPtr    database,
const oaString &    string
[virtual]
 

This function finds the string entry in the database managed by this change set.

Parameters:
database A smart pointer to the database reference object.
string The string for which to find the string entry.

Implements oaChangeSetBase.

oaHierChangeRec * oaChangeSet::getCurrentChangeRec oaCMDatabaseRef::SPtr    database [virtual]
 

This function gets the current hierarchical change record for the specified database. It returns null if there is no current change record, which means the next change record to be added will be a top-level change record.

Parameters:
database A smart pointer to the database reference.

Implements oaChangeSetBase.

void oaChangeSet::getName oaString &    name const [virtual]
 

This function retrieves the name of this change set in name.

Parameters:
name The retrieved name of this change set.

Implements oaChangeSetBase.

oaTimeStamp oaChangeSet::getTimeStamp   const [virtual]
 

A change set has a counter that it increments each time a change record is added. This function returns the oaTimeStamp object that represents the current value of the counter.

Implements oaChangeSetBase.

oaBoolean oaChangeSet::isActive   const [virtual]
 

This function returns a boolean indicating whether tracking is active on this change set. An active change set cannot be exported.

Implements oaChangeSetBase.

oaBoolean oaChangeSet::isExported   const [virtual]
 

This function returns a boolean indicating whether or not this change set has been exported. Applications cannot call oaChangeMgr::beginTracking on a change set that has been exported.

Implements oaChangeSetBase.

void oaChangeSet::passivateRefs oaCMDatabaseRef::SPtr    dbRef [virtual]
 

This function passivates the references that describe the change records in the change set.

Parameters:
dbRef The database reference for which to passivate references.

Implements oaChangeSetBase.

virtual bool oaChangeSet::removeChangeRec oaCMDatabaseRef::SPtr    dbRef,
oaLeafChangeRec *    rec
[virtual]
 

Implements oaChangeSetBase.

void oaChangeSet::rollBackChangeRecs oaCMDatabaseRef::SPtr    dbRef,
oaMarkerChangeRec *    target = NULL,
oaBoolean    inclusive = false
[virtual]
 

This function removes changes records from the change set associated with the specified database reference. All changes that occurred after the target marker change record are removed. If inclusive is set to true, the change marker itself is also removed.

Parameters:
dbRef The database reference associated with the change set for which to rollback changes.
target The marker change record to delimit the rollback.
inclusive A boolean that specifies whether or not the target marker change record itself is removed as part of the rollback.

Implements oaChangeSetBase.

void oaChangeSet::setActive oaBoolean    state [virtual]
 

This function sets a boolean to indicate whether or not tracking is active on this change set. The initial state is false (non-active). It is set to true by oaChangeMgr::beginTracking(); set to false by oaChangeMgr::endTracking();

Parameters:
state True (active) or false (non-active)

Implements oaChangeSetBase.

void oaChangeSet::setExported   [virtual]
 

This function sets the status of this change set to exported. The initial status of a change set is not exported. You cannot begin tracking on a change set if its status is set to exported. oaChangeMgr::exportFull() calls this function, whereas oaChangeMgr::exportIncr() does not.

Implements oaChangeSetBase.


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

Return to top of page