Go to the documentation of this file.
6 #ifndef BASE_CATEGORY_H
7 #define BASE_CATEGORY_H
53 std::string
name(
const std::string& localeString = std::string() )
const;
int DCA_GROUP_ID_TYPE
Type for group ids.
DCA_CATEGORY_ID_TYPE id() const
The category id.
bool operator==(const Category &aCategory) const
Equality operator, returns true if aCategory.id() == this->id().
Category NullCategory
Defines a constant unassigned Category you can use for checks. if( myCat == NullCategory ) --> myCat ...
int DCA_CATEGORY_ID_TYPE
Type for category ids.
bool operator!=(const Category &aCategory) const
Inequality operator, returns true if aCategory.id() != this->id().
std::string name(const std::string &localeString=std::string()) const
Returns the localized (display) name of the category.
DCA_GROUP_ID_TYPE groupId() const
If the category is associated with a group, this is the group id.
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Encapsulates a category as defined in the categories XML schema (see Categories XML: Categories).