SlHelpers
SlKernCVS::Role Class Reference

Role of a Person. More...

#include <Person.h>

Public Types

enum  RoleType {
  Author, SignedOffBy, FirstRole = SignedOffBy, CoDevelopedBy,
  SuggestedBy, ReviewedBy, AckedBy, LastRole = AckedBy,
  TestedBy, ReportedBy, Maintainer, Upstream,
  Last
}
 Actual roles. More...
 

Public Member Functions

 Role (size_t index)
 Construct new Role with role set by the index.
 
 Role (RoleType role)
 Construct new Role with role set.
 
RoleType role () const
 Get the actual RoleType.
 
constexpr auto index () const
 Convert Role to number/index.
 
constexpr const auto & toString () const
 Convert Role to string.
 

Detailed Description

Role of a Person.

The class converts roles to indices and back too.

Member Enumeration Documentation

◆ RoleType

Actual roles.

Roles from FirstRole to LastRole are tried in parse(). The others have to be set manually as needed.


The documentation for this class was generated from the following file: