8 #ifndef FFA_VIEW_ITEM_H
9 #define FFA_VIEW_ITEM_H
55 static bool stringCompare(
const std::string& s1,
const std::string& s2);
57 static int stringCompare3w(
const std::string& s1,
const std::string& s2);
Abstract interface class for list view items.
Definition: FFaViewItem.H:22
static bool stringCompare(const std::string &s1, const std::string &s2)
Binary comparison of two strings.
Definition: FFaViewItemUtils.C:163
virtual void getItemAssemblyPath(std::vector< int > &) const
Returns the sub-assembly ID path of this item.
Definition: FFaViewItem.H:41
static bool compareID(FFaViewItem *i1, FFaViewItem *i2)
Binary comparison of user IDs (implementation of less).
Definition: FFaViewItemUtils.C:49
static bool compareDescr(FFaViewItem *i1, FFaViewItem *i2)
Binary comparison of description strings (implementation of less).
Definition: FFaViewItemUtils.C:20
FFaViewItem()=default
Default constructor.
FFaViewItem & operator=(const FFaViewItem &)=delete
Disable default assignment operator.
virtual int getItemBaseID() const =0
Returns the base ID of this item.
virtual std::string getItemDescr() const =0
Returns the description of this item.
FFaViewItem(const FFaViewItem &)=delete
Disable default copy constructor.
virtual char const * getItemName() const =0
Returns the name of this item.
virtual int getItemID() const =0
Returns the user ID of this item.
static int compareID3w(FFaViewItem *i1, FFaViewItem *i2)
Three-way lexicographical comparison of user IDs.
Definition: FFaViewItemUtils.C:96
static int stringCompare3w(const std::string &s1, const std::string &s2)
Three-way lexicographical comparison of two strings.
Definition: FFaViewItemUtils.C:171
virtual ~FFaViewItem()
Empty destructor.
Definition: FFaViewItem.H:29
static int compareDescr3w(FFaViewItem *i1, FFaViewItem *i2)
Three-way lexicographical comparison of description strings.
Definition: FFaViewItemUtils.C:74