2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2012-09-23 18:09:57 -04:00
|
|
|
#include "Group.h"
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2014-02-05 12:10:08 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-18 15:09:44 -04:00
|
|
|
void cGroup::AddCommand( const AString & a_Command )
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
|
|
|
m_Commands[ a_Command ] = true;
|
|
|
|
}
|
|
|
|
|
2014-02-05 12:10:08 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-18 15:09:44 -04:00
|
|
|
void cGroup::AddPermission( const AString & a_Permission )
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
|
|
|
m_Permissions[ a_Permission ] = true;
|
|
|
|
}
|
|
|
|
|
2014-02-05 12:10:08 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
void cGroup::InheritFrom( cGroup* a_Group )
|
|
|
|
{
|
|
|
|
m_Inherits.remove( a_Group );
|
|
|
|
m_Inherits.push_back( a_Group );
|
2014-02-05 12:10:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-05 14:20:11 -05:00
|
|
|
|
2014-02-05 12:10:08 -05:00
|
|
|
void cGroup::ClearPermission()
|
|
|
|
{
|
|
|
|
m_Permissions.clear();
|
2014-03-25 13:15:05 -04:00
|
|
|
}
|