MCPcopy Create free account
hub / github.com/Norbyte/ositools / StatExists

Function StatExists

OsiInterface/Functions/StatFunctions.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 namespace func
8 {
9 bool StatExists(OsiArgumentDesc & args)
10 {
11 auto statName = args[0].String;
12
13 auto stats = gOsirisProxy->GetLibraryManager().GetStats();
14 if (stats == nullptr) {
15 return false;
16 }
17
18 auto object = stats->objects.Find(statName);
19 return object != nullptr;
20 }
21
22 bool StatAttributeExists(OsiArgumentDesc & args)
23 {

Callers

nothing calls this directly

Calls 2

GetStatsMethod · 0.80
FindMethod · 0.45

Tested by

no test coverage detected