ManaPlus
|
#include "resources/db/groupdb.h"
#include "configuration.h"
#include "being/localplayer.h"
#include "utils/checkutils.h"
#include "net/net.h"
#include "resources/beingcommon.h"
#include "resources/groupinfo.h"
#include "debug.h"
#include "resources/servercommands.inc"
#include "resources/serverpermissions.inc"
Go to the source code of this file.
Namespaces | |
anonymous_namespace{groupdb.cpp} | |
Macros | |
#define | servercommandFirst(name) |
#define | servercommand(name) |
#define | servercommand2(name1, name2) |
#define | serverpermissionFirst(name) |
#define | serverpermission(name) |
Functions | |
static ServerCommandTypeT | parseCommand (const std::string &str, const int id) |
static ServerPermissionTypeT | parsePermission (const std::string &str, const int id) |
static ServerCommandEnable::Type | parseUseFlag (const std::string &str, const int id) |
static void | loadCommands (xmlNodePtr rootNode, const int id, GroupInfo *groupInfo) |
static void | loadPermissions (xmlNodePtr rootNode, const int id, GroupInfo *groupInfo) |
static void | loadSubNodes (xmlNodePtr groupNode, const int id, GroupInfo *groupInfo) |
static void | parseInherit (xmlNodePtr groupNode, const int id, GroupInfo *groupInfo) |
Variables | |
GroupDb::GroupInfos | anonymous_namespace{groupdb.cpp}::mGroups |
const GroupInfo | anonymous_namespace{groupdb.cpp}::mEmptyGroup |
bool | anonymous_namespace{groupdb.cpp}::mLoaded = false |
#define servercommand | ( | name | ) |
Definition at line 63 of file groupdb.cpp.
#define servercommand2 | ( | name1, | |
name2 | |||
) |
Definition at line 67 of file groupdb.cpp.
#define servercommandFirst | ( | name | ) |
Definition at line 59 of file groupdb.cpp.
#define serverpermission | ( | name | ) |
Definition at line 94 of file groupdb.cpp.
#define serverpermissionFirst | ( | name | ) |
Definition at line 90 of file groupdb.cpp.
|
static |
Definition at line 149 of file groupdb.cpp.
References CAST_SIZE, for_each_xml_child_node, XML::getProperty(), ServerCommandType::Max, GroupInfo::mCommands, ServerCommandEnable::No, parseCommand(), and parseUseFlag().
Referenced by loadSubNodes().
|
static |
Definition at line 177 of file groupdb.cpp.
References CAST_SIZE, Enable_true, for_each_xml_child_node, XML::getBoolProperty(), XML::getProperty(), ServerPermissionType::Max, GroupInfo::mPermissions, and parsePermission().
Referenced by loadSubNodes().
|
static |
Definition at line 205 of file groupdb.cpp.
References for_each_xml_child_node, loadCommands(), and loadPermissions().
Referenced by GroupDb::loadXmlFile().
|
static |
Definition at line 72 of file groupdb.cpp.
References ServerCommandType::Max, and reportAlways.
Referenced by loadCommands().
|
static |
Definition at line 221 of file groupdb.cpp.
References CAST_SIZE, Enable_true, FOR_EACH, XML::langProperty(), ServerCommandType::Max, ServerPermissionType::Max, GroupInfo::mCommands, anonymous_namespace{groupdb.cpp}::mGroups, GroupInfo::mPermissions, ServerCommandEnable::No, reportAlways, and splitToIntVector().
Referenced by GroupDb::loadXmlFile().
|
static |
Definition at line 99 of file groupdb.cpp.
References ServerPermissionType::Max, and reportAlways.
Referenced by loadPermissions().
|
static |
Definition at line 117 of file groupdb.cpp.
References ServerCommandEnable::Both, ServerCommandEnable::No, ServerCommandEnable::Other, reportAlways, and ServerCommandEnable::Self.
Referenced by loadCommands().