cee::ug::SetInfo

class SetInfo

Simple class containing metadata info for a set.

Public Functions

SetInfo()

Constructs an empty object.

Default id is -1 (invalid).

SetInfo(int id, const Str &name, const Str &description)

Constructs a new set with the specified id, name, and description.

SetInfo(const SetInfo &other)

Constructs a new set info that is a copy of other.

SetInfo &operator=(const SetInfo &rhs)

Assigns rhs to this set info and returns a reference to this set info.

bool operator==(const SetInfo &rhs) const

Returns true if this object is equal to rhs.

bool operator!=(const SetInfo &rhs) const

Returns true if this object is not equal to rhs.

Str name() const

Returns the set name.

void setName(const Str &name)

Sets the set name.

int id() const

Returns the set id.

Returns -1 if this set info object is invalid.

Str description() const

Returns the set description.

void setDescription(const Str &desc)

Sets the set description.

bool isValid() const

Returns true if this object is a valid set info.