OERoleSet¶
class OERoleSet
This class represents OERoleSet, a parent class for objects that need to store OERole objects.
An OERole
is an object that helps
define a classification (naming) scheme
to represent a category or functional role.
Objects derived from OERoleSet can
have OERole
objects added
to them as a way of marking them for particular uses.
- The following classes derive from this class:
It is possible to test if an OERole
has been added using the HasRole
method, or with the OEHasRole predicate.
AddRole¶
bool AddRole(const OERole &role)
Add the specified OERole
to
this OERoleSet
.
Returns true
if successful.
bool AddRole(const std::string &name)
Convenience method for adding a
OERole
by name.
DeleteRole¶
bool DeleteRole(const OERole &role)
bool DeleteRole(const std::string &name)
Delete the specified OERole
from
this OERoleSet
.
Returns true
if successful.
GetRoles¶
OEIterBase<const OERole> *GetRoles() const
Returns an iterator of every OERole
object
in this OERoleSet
.