Simple class containing metadata info for a section category. More...
Public Member Functions | |
SectionCategoryInfo () | |
Constructs an empty object. More... | |
SectionCategoryInfo (int id, const Str &name) | |
Constructs a new object with the given section category id and name. More... | |
SectionCategoryInfo (const SectionCategoryInfo &other) | |
Constructs a new SectionCategoryInfo that is a copy of other. More... | |
SectionCategoryInfo & | operator= (const SectionCategoryInfo &rhs) |
Assigns rhs to this section category info and returns a reference to this section category info. More... | |
bool | operator== (const SectionCategoryInfo &rhs) const |
Returns true if this object is equal to rhs. More... | |
bool | operator!= (const SectionCategoryInfo &rhs) const |
Returns true if this object is not equal to rhs. More... | |
int | id () const |
Returns the section category id. More... | |
Str | name () const |
Returns the section category name. More... | |
Simple class containing metadata info for a section category.
A section category info contains:
cee::ug::SectionCategoryInfo::SectionCategoryInfo | ( | ) |
Constructs an empty object.
Default id is -1 (invalid)
cee::ug::SectionCategoryInfo::SectionCategoryInfo | ( | int | id, |
const Str & | name | ||
) |
Constructs a new object with the given section category id and name.
cee::ug::SectionCategoryInfo::SectionCategoryInfo | ( | const SectionCategoryInfo & | other | ) |
Constructs a new SectionCategoryInfo that is a copy of other.
int cee::ug::SectionCategoryInfo::id | ( | ) | const |
Returns the section category id.
Returns -1 if this section category info object is invalid.
Str cee::ug::SectionCategoryInfo::name | ( | ) | const |
Returns the section category name.
bool cee::ug::SectionCategoryInfo::operator!= | ( | const SectionCategoryInfo & | rhs | ) | const |
Returns true if this object is not equal to rhs.
SectionCategoryInfo & cee::ug::SectionCategoryInfo::operator= | ( | const SectionCategoryInfo & | rhs | ) |
Assigns rhs to this section category info and returns a reference to this section category info.
bool cee::ug::SectionCategoryInfo::operator== | ( | const SectionCategoryInfo & | rhs | ) | const |
Returns true if this object is equal to rhs.