summaryrefslogtreecommitdiffstats
path: root/src/Group.cpp
blob: 7257409055613eed5c691cfe5b0cf39e9dc3012f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

#include "Globals.h"  // NOTE: MSVC stupidness requires this to be the same across all modules

#include "Group.h"





void cGroup::AddCommand( const AString & a_Command )
{
	m_Commands[ a_Command ] = true;
}





void cGroup::AddPermission( const AString & a_Permission )
{
	m_Permissions[ a_Permission ] = true;
}





void cGroup::InheritFrom( cGroup* a_Group )
{
	m_Inherits.remove( a_Group );
	m_Inherits.push_back( a_Group );
}





void cGroup::ClearPermission()
{
	m_Permissions.clear();
}