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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cGroup::AddCommand( AString a_Command )
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
|
|
|
m_Commands[ a_Command ] = true;
|
|
|
|
}
|
|
|
|
|
2014-02-05 12:10:08 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cGroup::AddPermission( 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();
|
2011-10-03 14:41:19 -04:00
|
|
|
}
|