Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
irangeelementgroup.h
Go to the documentation of this file.
1 #pragma once
2 // irangeelementgroup.h
3 
5 
10 namespace itasca {
11  class IGroup;
12 }
13 
14 namespace itascaxd {
16 
20  class IRangeElementGroup { // name = "real"
21  public:
23  inline static const TType type_ = 0x4c815b95;
24 
25  typedef std::pair<QString,QString> Entry; // Slot,Group
26  typedef std::vector<Entry> Entries;
27 
28  virtual Entries getAllEntries() const=0;
30  virtual bool getAnd() const=0;
32  virtual bool getOnly() const=0;
33  virtual uint getMatches() const=0;
34  virtual QString getByName() const=0;
35  // Looks for "slot=group" string and decomposes into SLOT,GROUP names.
36  // If no = is present then SLOT will be null.
37  virtual Entry decompose(const QString &groupName) const=0;
38  virtual void setAllSlots(const QString &slot)=0;
39 
40  // SIGNALS
42  virtual void entryAdded(const QString &slot,const QString &group)=0;
44  virtual void entryRemoved(const QString &slot,const QString &group)=0;
46  virtual void andChanged(bool b)=0;
48  virtual void onlyChanged(bool b)=0;
49  virtual void matchesChanged(uint i)=0;
50  virtual void byNameChanged(const QString &name)=0;
51 
52  // SLOTS
55  virtual bool addEntry(const QString &slot,const QString &name)=0;
58  virtual bool removeEntry(const QString &slot,const QString &name)=0;
61  virtual void setAnd(bool b)=0;
63  virtual void setOnly(bool b)=0;
64  virtual void setMatches(uint i)=0;
65  virtual void setByName(const QString &name)=0;
68  virtual void clear()=0;
70  virtual void enableByParsing()=0;
71  };
72 } // namespace itasca
73 
74 // EoF
Interface to a filter element, which is a member of a IRange.
virtual void onlyChanged(bool b)=0
THis SIGNAL is emitted when the only state is changed.
namespace Itasca
Definition: basememory.cpp:9
Interface to a group filter element, used to filter objects by group assignment.
Definition: irangeelementgroup.h:20
virtual bool getOnly() const =0
Returns the ONLY state, if true then object must not be a direct member of any groups not on this lis...
virtual bool addEntry(const QString &slot, const QString &name)=0
unsigned int TType
class type indicator
Definition: basedef.h:41
virtual void andChanged(bool b)=0
This SIGNAL is emitted when the and state is changed.
virtual bool removeEntry(const QString &slot, const QString &name)=0
virtual void setOnly(bool b)=0
Returns the ONLY state, if true then object must not be a direct member of any groups not on this lis...
Itasca Library standard namespace, specific to 2D or 3D.
Definition: icontactmodule.h:4
virtual void setAnd(bool b)=0
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: irangeelementgroup.h:23
virtual bool getAnd() const =0
Returns the AND state, if true then object must belong to ALL groups.
virtual void entryRemoved(const QString &slot, const QString &group)=0
This SIGNAL is emitted when a slot/group pairt is removed from the list of names being checked.
virtual void enableByParsing()=0
Set that parsing using the BY keyword is enabled.
virtual void entryAdded(const QString &slot, const QString &group)=0
This SIGNAL is emitted when a slot/group pair is added to the list being checked.