MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / PermsLoop

Method PermsLoop

plugins/webadmin/loops.cpp:440–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438//-------------PermsLoop
439
440PermsLoop::PermsLoop(Templateiser& ts) {
441 bz_APIStringList* permList = bz_getStandardPermList();
442 for (unsigned int i = 0; i < permList->size(); i++) {
443 perms.push_back(std::string(permList->get(i).c_str()));
444 }
445
446 bz_deleteStringList(permList);
447 size = perms.size();
448
449 ts.addLoop("Permissions", this);
450 ts.addKey("Permission", this);
451}
452
453void PermsLoop::getKey(size_t item, std::string& data, const std::string& key) {
454 UNUSED(key);

Callers

nothing calls this directly

Calls 7

bz_deleteStringListFunction · 0.85
c_strMethod · 0.80
addLoopMethod · 0.80
addKeyMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected