WSF
WsfComponentListDefines.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WSF_CALL_VOID_COMPONENTS(METHOD, ARG)

Macro Definition Documentation

◆ WSF_CALL_VOID_COMPONENTS

#define WSF_CALL_VOID_COMPONENTS ( METHOD,
ARG )
Value:
if (mComponents.HasComponents()) \
{ \
for (auto component : mComponents) \
{ \
component->METHOD(ARG); \
} \
}

Call FUNCTION(ARG) on each registered component. e.g. WSF_CALL_VOID_COMPONENTS(TurnOn, aSimTime);

Referenced by WsfProcessor::TurnOff(), WsfWeapon::TurnOff(), WsfProcessor::TurnOn(), and WsfWeapon::TurnOn().

Copyrights Multiple, All Rights Reserved