TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
rbac::RBACPermission Class Reference

#include <RBAC.h>

Public Member Functions

 RBACPermission (uint32 id=0, std::string const &name="")
 
std::string constGetName () const
 Gets the Name of the Object. More...
 
uint32 GetId () const
 Gets the Id of the Object. More...
 
RBACPermissionContainer constGetLinkedPermissions () const
 Gets the Permissions linked to this permission. More...
 
void AddLinkedPermission (uint32 id)
 Adds a new linked Permission. More...
 
void RemoveLinkedPermission (uint32 id)
 Removes a linked Permission. More...
 

Private Attributes

uint32 _id
 
std::string _name
 

id of the object

More...
 
RBACPermissionContainer _perms
 

name of the object

More...
 

Constructor & Destructor Documentation

rbac::RBACPermission::RBACPermission ( uint32  id = 0,
std::string const name = "" 
)
inline
751  :
752  _id(id), _name(name), _perms() { }
uint32 _id
Definition: RBAC.h:767
std::string _name
id of the object
Definition: RBAC.h:768
RBACPermissionContainer _perms
name of the object
Definition: RBAC.h:769

Member Function Documentation

void rbac::RBACPermission::AddLinkedPermission ( uint32  id)
inline

Adds a new linked Permission.

762 { _perms.insert(id); }
RBACPermissionContainer _perms
name of the object
Definition: RBAC.h:769

+ Here is the caller graph for this function:

uint32 rbac::RBACPermission::GetId ( ) const
inline

Gets the Id of the Object.

757 { return _id; }
uint32 _id
Definition: RBAC.h:767

+ Here is the caller graph for this function:

RBACPermissionContainer const& rbac::RBACPermission::GetLinkedPermissions ( ) const
inline

Gets the Permissions linked to this permission.

760 { return _perms; }
RBACPermissionContainer _perms
name of the object
Definition: RBAC.h:769

+ Here is the caller graph for this function:

std::string const& rbac::RBACPermission::GetName ( ) const
inline

Gets the Name of the Object.

755 { return _name; }
std::string _name
id of the object
Definition: RBAC.h:768

+ Here is the caller graph for this function:

void rbac::RBACPermission::RemoveLinkedPermission ( uint32  id)
inline

Removes a linked Permission.

764 { _perms.erase(id); }
RBACPermissionContainer _perms
name of the object
Definition: RBAC.h:769

Member Data Documentation

uint32 rbac::RBACPermission::_id
private
std::string rbac::RBACPermission::_name
private

id of the object

RBACPermissionContainer rbac::RBACPermission::_perms
private

name of the object


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