| 93 | } |
| 94 | |
| 95 | void ForLoopObject(OsiArgumentDesc const & args) |
| 96 | { |
| 97 | auto objectGuid = args[0].String; |
| 98 | auto eventName = args[1].String; |
| 99 | auto count = args[2].Int32; |
| 100 | |
| 101 | for (int32_t index = 0; index < count; index++) { |
| 102 | auto eventArgs = OsiArgumentDesc::Create(OsiArgumentValue{ ValueType::GuidString, objectGuid }); |
| 103 | eventArgs->Add(OsiArgumentValue{ ValueType::String, eventName }); |
| 104 | eventArgs->Add(OsiArgumentValue{ (int64_t)index }); |
| 105 | |
| 106 | gOsirisProxy->GetCustomFunctionInjector().ThrowEvent(ForLoopObjectEventHandle, eventArgs); |
| 107 | |
| 108 | delete eventArgs; |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | void CustomFunctionLibrary::RegisterHelperFunctions() |
nothing calls this directly
no test coverage detected