Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | Static Public Attributes | List of all members
itascaxd::IRangeElementIdentifierList Class Referenceabstract

Interface to to a Range Element that matches string to a list of stored strings. More...

#include <irangeelementutil.h>

Public Member Functions

virtual qint64 getNumberOfEntries (bool onOnly=false) const =0
 Returns the total number of entries. If onOnly is true it will return the number of entries whose state is true.
 
virtual QStringList getAllEntries (bool onOnly=false) const =0
 Returns a list of all entries. If onOnly is true will return a list of all entries whose state is true.
 
virtual bool getEntryState (const QString &entry) const =0
 Returns the state of the entry, or false if the entry does not exist.
 
virtual bool addEntry (const QString &entry, bool state=true)=0
 Adds an entry to the list.
.
 
virtual void setEntryState (const QString &entry, bool state)=0
 Sets the state of entry. Ignored if entry has not already been added.
 
virtual bool removeEntryIfOff (const QString &entry)=0
 Removes entry from list if it is present and off. Returns TRUE if it does so, false if not.
 
virtual void removeAllOffEntries ()=0
 Removes all OFF entries from the list.
 
virtual bool removeEntry (const QString &entry)=0
 Remove entry regardless.
 
virtual void entryAdded (const QString &entry, bool state, const qint64 &numberOfEntries)=0
 Signal emitted when a new entry was added, see addEntry()
 
virtual void entryRemoved (const QString &entry, const qint64 &numberOfEntries)=0
 Signal emitted when an entry is removed.
 
virtual void entryStateChanged (const QString &entry, bool state, const qint64 &numberOfEntries)=0
 Signal emitted when a state of an existing entry has changed, see addEntry(), changeEntryState()
 
virtual void allChanged ()=0
 

Static Public Attributes

static const TType type_ = 0x04c815ba5
 The type identification number for this class, for use in convert_cast() and convert_getcast().
 

Detailed Description

Interface to to a Range Element that matches string to a list of stored strings.

This interface is similar to IRangeElementUIntPtrList.
Entries with a false state aren't used by the kernel in any way.
They exist to make user interface issues easier (a list of regions with some unselected, for instance).

Member Function Documentation

◆ allChanged()

virtual void itascaxd::IRangeElementIdentifierList::allChanged ( )
pure virtual

This SIGNAL is emitted when all of the entries in the list have been changed.
The list could have been cleared or copied, for instance.


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