Workspace 6.21.5
Public Member Functions | List of all members
ItemDifference Class Reference

Stores common differences between two items as recorded as part of the CompareTwoWorkspaces operation. More...

#include <Tools/WorkflowComparison/itemdifference.h>

Inheritance diagram for ItemDifference:
[legend]

Public Member Functions

 ItemDifference ()
 
 ItemDifference (const ItemDifference &other)
 
 ~ItemDifference () override
 
ItemDifferenceclone () const override
 
const QString & getItemType () const
 
bool getPresentIn (ComparisonRole workflow) const
 
const bool & getPresentInA () const
 
const bool & getPresentInB () const
 
bool getSuppressAnnotationIn (ComparisonRole workflow) const
 
const bool & getSuppressAnnotationInA () const
 
const bool & getSuppressAnnotationInB () const
 
bool getUpdatedIn (ComparisonRole workflow) const
 
const bool & getUpdatedInA () const
 
const bool & getUpdatedInB () const
 
ItemDifferenceoperator= (const ItemDifference &rhs)
 
bool operator== (const ItemDifference &rhs) const
 
void setItemType (const QString &itemType)
 
void setPresentInA (const bool &presentInA)
 
void setPresentInB (const bool &presentInB)
 
void setSuppressAnnotation (const bool &updatedIn, ComparisonRole workflow)
 
void setSuppressAnnotationInA (const bool &updatedInA)
 
void setSuppressAnnotationInB (const bool &updatedInB)
 
void setUpdated (const bool &updatedIn, ComparisonRole workflow)
 
void setUpdatedInA (const bool &updatedInA)
 
void setUpdatedInB (const bool &updatedInB)
 
virtual QString toString () const
 
- Public Member Functions inherited from ObjectGroup
 ~ObjectGroup () override
 
bool add (const QString &name, DataObject &obj)
 
bool canSerialize () const override
 
ObjectGroupclone () const override=0
 
bool empty () const
 
void ensureGroupHasData ()
 
void erase (int index)
 
DataObjectgetChild (const QString &name)
 
const DataObjectgetChild (const QString &name) const
 
DataObjectgetDataObject (int index)
 
const DataObjectgetDataObject (int index) const
 
int getIndex (const QString &name) const
 
const QString & getName (int index) const
 
virtual QString getPreferedWidget (const QString &name) const
 
bool hasData () const
 
bool haveName (const QString &name) const
 
bool insert (const QString &name, DataObject &obj, int index=-1)
 
bool load (const QJsonDocument &doc)
 
bool load (const SerializedItem &item) override
 
bool save (QJsonDocument &doc) const
 
bool save (SerializedItem &item) const override
 
unsigned size () const
 
- Public Member Functions inherited from Clonable
virtual ~Clonable ()=default
 
virtual Clonableclone () const =0
 
- Public Member Functions inherited from Serialize
virtual ~Serialize ()=default
 
virtual bool canSerialize () const =0
 
virtual bool load (const SerializedItem &item)=0
 
virtual bool save (SerializedItem &item) const =0
 

Additional Inherited Members

- Protected Member Functions inherited from ObjectGroup
 ObjectGroup ()
 
void clear ()
 
ObjectGroupoperator= (const ObjectGroup &rhs)
 
bool operator== (const ObjectGroup &rhs) const
 
void swap (ObjectGroup &rhs)
 

Detailed Description

The only difference in common is present or not present

Constructor & Destructor Documentation

◆ ItemDifference() [1/2]

◆ ItemDifference() [2/2]

ItemDifference ( const ItemDifference other)

◆ ~ItemDifference()

~ItemDifference ( )
overridedefault

Member Function Documentation

◆ clone()

ItemDifference * clone ( ) const
overridevirtual

◆ getItemType()

const QString & getItemType ( ) const

◆ getPresentIn()

bool getPresentIn ( ComparisonRole  workflow) const

◆ getPresentInA()

const bool & getPresentInA ( ) const

◆ getPresentInB()

const bool & getPresentInB ( ) const

◆ getSuppressAnnotationIn()

bool getSuppressAnnotationIn ( ComparisonRole  workflow) const

◆ getSuppressAnnotationInA()

const bool & getSuppressAnnotationInA ( ) const

◆ getSuppressAnnotationInB()

const bool & getSuppressAnnotationInB ( ) const

◆ getUpdatedIn()

bool getUpdatedIn ( ComparisonRole  workflow) const

◆ getUpdatedInA()

const bool & getUpdatedInA ( ) const

◆ getUpdatedInB()

const bool & getUpdatedInB ( ) const

◆ operator=()

ItemDifference & operator= ( const ItemDifference rhs)

Assignment

◆ operator==()

bool operator== ( const ItemDifference rhs) const

Comparison

◆ setItemType()

void setItemType ( const QString &  itemType)

◆ setPresentInA()

void setPresentInA ( const bool &  presentInA)

◆ setPresentInB()

void setPresentInB ( const bool &  presentInB)

◆ setSuppressAnnotation()

void setSuppressAnnotation ( const bool &  updatedIn,
ComparisonRole  workflow 
)

◆ setSuppressAnnotationInA()

void setSuppressAnnotationInA ( const bool &  updatedInA)

◆ setSuppressAnnotationInB()

void setSuppressAnnotationInB ( const bool &  updatedInB)

◆ setUpdated()

void setUpdated ( const bool &  updatedIn,
ComparisonRole  workflow 
)

◆ setUpdatedInA()

void setUpdatedInA ( const bool &  updatedInA)

◆ setUpdatedInB()

void setUpdatedInB ( const bool &  updatedInB)

◆ toString()

virtual QString toString ( ) const
inlinevirtual