ACF $AcfVersion:0$
Public Member Functions | List of all members
istd::IChangeable::ChangeSet Class Reference

Set of change flags (its IDs). More...

#include <IChangeable.h>

Public Member Functions

 ChangeSet ()
 
 ChangeSet (const QString &description)
 
 ChangeSet (int id1, const QString &description="")
 
 ChangeSet (int id1, int id2, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, int id6, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, int id6, int id7, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, int id6, int id7, int id8, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, int id6, int id7, int id8, int id9, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, int id6, int id7, int id8, int id9, int id10, const QString &description="")
 
void Reset ()
 Remove all IDs.
 
bool IsEmpty () const
 Check if there is any change in the set.
 
bool Contains (int changeId) const
 Check if there is specific change flag in the set.
 
bool ContainsExplicit (int changeId, bool singleOnly=false) const
 Check if there is specific change flag in the set explicit set by user.
 
bool ContainsAny (const ChangeSet &changeSet) const
 Check if any of IDs is changed.
 
void MaskOut (const ChangeSet &changeSet)
 Remove the IDs from the second set.
 
const QString & GetDescription () const
 Get textual description of this change set.
 
QSet< int > GetIds () const
 Get set of all stored IDs.
 
const ChangeInfoMapGetChangeInfoMap () const
 Get information about the changes.
 
void SetChangeInfoMap (const ChangeInfoMap &infoMap)
 Set map of all stored info.
 
QVariant GetChangeInfo (const QByteArray &key) const
 Get change info by a key.
 
void SetChangeInfo (const QByteArray &key, const QVariant &value)
 Set change info for a defined key.
 
ChangeSet operator+ (const ChangeSet &changeSet) const
 Get the union of two change sets.
 
ChangeSetoperator+= (int changeId)
 Add some change flag.
 
ChangeSetoperator+= (const QSet< int > &ids)
 Add some change flags.
 
ChangeSetoperator+= (const ChangeSet &changeSet)
 Add some change set.
 

Detailed Description

Set of change flags (its IDs).

Definition at line 35 of file IChangeable.h.

Constructor & Destructor Documentation

◆ ChangeSet() [1/12]

istd::IChangeable::ChangeSet::ChangeSet ( )

◆ ChangeSet() [2/12]

istd::IChangeable::ChangeSet::ChangeSet ( const QString &  description)
explicit

◆ ChangeSet() [3/12]

istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
const QString &  description = "" 
)
explicit

◆ ChangeSet() [4/12]

istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
const QString &  description = "" 
)

◆ ChangeSet() [5/12]

istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
const QString &  description = "" 
)

◆ ChangeSet() [6/12]

istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
const QString &  description = "" 
)

◆ ChangeSet() [7/12]

istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
const QString &  description = "" 
)

◆ ChangeSet() [8/12]

istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
int  id6,
const QString &  description = "" 
)

◆ ChangeSet() [9/12]

istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
int  id6,
int  id7,
const QString &  description = "" 
)

◆ ChangeSet() [10/12]

istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
int  id6,
int  id7,
int  id8,
const QString &  description = "" 
)

◆ ChangeSet() [11/12]

istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
int  id6,
int  id7,
int  id8,
int  id9,
const QString &  description = "" 
)

◆ ChangeSet() [12/12]

istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
int  id6,
int  id7,
int  id8,
int  id9,
int  id10,
const QString &  description = "" 
)

Member Function Documentation

◆ Contains()

bool istd::IChangeable::ChangeSet::Contains ( int  changeId) const

◆ ContainsAny()

bool istd::IChangeable::ChangeSet::ContainsAny ( const ChangeSet changeSet) const

Check if any of IDs is changed.

◆ ContainsExplicit()

bool istd::IChangeable::ChangeSet::ContainsExplicit ( int  changeId,
bool  singleOnly = false 
) const

Check if there is specific change flag in the set explicit set by user.

There are some control flags, used to indicate that all changes were done. The functionality of this flags will be omitted by this check.

Parameters
changeIdID of requested change.
singleOnlyif it is true, than this function return tru only if the set contains only requested change and nothing more.

Referenced by iqtgui::TGuiObserverWrap< Gui, Observer >::AfterUpdate().

◆ GetChangeInfo()

QVariant istd::IChangeable::ChangeSet::GetChangeInfo ( const QByteArray &  key) const

Get change info by a key.

◆ GetChangeInfoMap()

const ChangeInfoMap & istd::IChangeable::ChangeSet::GetChangeInfoMap ( ) const

Get information about the changes.

◆ GetDescription()

const QString & istd::IChangeable::ChangeSet::GetDescription ( ) const

Get textual description of this change set.

◆ GetIds()

QSet< int > istd::IChangeable::ChangeSet::GetIds ( ) const

Get set of all stored IDs.

Please note, that there are some special IDs changing interpretation of this set. It will be exported in raw form.

◆ IsEmpty()

bool istd::IChangeable::ChangeSet::IsEmpty ( ) const

Check if there is any change in the set.

◆ MaskOut()

void istd::IChangeable::ChangeSet::MaskOut ( const ChangeSet changeSet)

Remove the IDs from the second set.

◆ operator+()

ChangeSet istd::IChangeable::ChangeSet::operator+ ( const ChangeSet changeSet) const

Get the union of two change sets.

◆ operator+=() [1/3]

ChangeSet & istd::IChangeable::ChangeSet::operator+= ( const ChangeSet changeSet)

Add some change set.

◆ operator+=() [2/3]

ChangeSet & istd::IChangeable::ChangeSet::operator+= ( const QSet< int > &  ids)

Add some change flags.

◆ operator+=() [3/3]

ChangeSet & istd::IChangeable::ChangeSet::operator+= ( int  changeId)

Add some change flag.

◆ Reset()

void istd::IChangeable::ChangeSet::Reset ( )

◆ SetChangeInfo()

void istd::IChangeable::ChangeSet::SetChangeInfo ( const QByteArray &  key,
const QVariant &  value 
)

Set change info for a defined key.

◆ SetChangeInfoMap()

void istd::IChangeable::ChangeSet::SetChangeInfoMap ( const ChangeInfoMap infoMap)

Set map of all stored info.


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