umbrello API Documentation

IDChangeLog Class Reference

This class contains all the ID translations done for each UMLObject pasted. More...

#include <idchangelog.h>

List of all members.

Public Types

enum  SpecialIDs { NullID = -1000 }

Public Member Functions

 IDChangeLog ()
 Constructor.
 IDChangeLog (const IDChangeLog &Other)
 Copy constructor.
 ~IDChangeLog ()
 Deconstructor.
IDChangeLogoperator= (const IDChangeLog &Other)
 Overloaded '=' operator.
bool operator== (const IDChangeLog &Other)
 Overloaded '==' operator.
void addIDChange (Uml::IDType OldID, Uml::IDType NewID)
 Adds a new ID Change to the log.
IDChangeLogoperator+= (const IDChangeLog &Other)
 Appends another IDChangeLog to this instance of IDChangeLog and returns a reference to itself.
Uml::IDType findNewID (Uml::IDType OldID)
 Returns the new assigned ID of the object that had OldID as its previous id.
Uml::IDType findOldID (Uml::IDType NewID)
 Returns the old ID of an UMLobject given its new one.
void removeChangeByNewID (Uml::IDType OldID)
 Removes a change giving an New ID.


Detailed Description

This class contains all the ID translations done for each UMLObject pasted.

It contains for each old id its new assigned id.

Author:
Gustavo Madrigal Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 30 of file idchangelog.h.


Member Enumeration Documentation

enum IDChangeLog::SpecialIDs
 

Enumeration values:
NullID  An impossible id value.

Definition at line 84 of file idchangelog.h.


Constructor & Destructor Documentation

IDChangeLog::IDChangeLog  ) 
 

Constructor.

Definition at line 16 of file idchangelog.cpp.

IDChangeLog::IDChangeLog const IDChangeLog Other  ) 
 

Copy constructor.

Definition at line 18 of file idchangelog.cpp.

IDChangeLog::~IDChangeLog  ) 
 

Deconstructor.

Definition at line 22 of file idchangelog.cpp.


Member Function Documentation

IDChangeLog & IDChangeLog::operator= const IDChangeLog Other  ) 
 

Overloaded '=' operator.

Definition at line 24 of file idchangelog.cpp.

References m_LogArray.

bool IDChangeLog::operator== const IDChangeLog Other  ) 
 

Overloaded '==' operator.

Definition at line 30 of file idchangelog.cpp.

void IDChangeLog::addIDChange Uml::IDType  OldID,
Uml::IDType  NewID
 

Adds a new ID Change to the log.

Definition at line 56 of file idchangelog.cpp.

Referenced by UMLView::addWidget(), UMLDoc::assignNewID(), and operator+=().

IDChangeLog & IDChangeLog::operator+= const IDChangeLog Other  ) 
 

Appends another IDChangeLog to this instance of IDChangeLog and returns a reference to itself.

Definition at line 46 of file idchangelog.cpp.

References addIDChange(), and m_LogArray.

Uml::IDType IDChangeLog::findNewID Uml::IDType  OldID  ) 
 

Returns the new assigned ID of the object that had OldID as its previous id.

Definition at line 35 of file idchangelog.cpp.

Referenced by UMLView::addAssociation(), and UMLView::addWidget().

Uml::IDType IDChangeLog::findOldID Uml::IDType  NewID  ) 
 

Returns the old ID of an UMLobject given its new one.

Definition at line 67 of file idchangelog.cpp.

void IDChangeLog::removeChangeByNewID Uml::IDType  OldID  ) 
 

Removes a change giving an New ID.

Definition at line 90 of file idchangelog.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003