AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ IsFlagSet()

bool drama::gitarg::IsFlagSet ( const Flags  f1,
const Flags  f2 
)
inline

Operator to allow determination of if a Flag enum value set.

Since Flags can't be or-ed together, you can't just compare them to determine if a flag is set. This function deals with the required casts. Both arguments are cast to unsigned int and the then a bitwise and is performed, the result value is true if the result if the and is non-zero.

Parameters
f1First flag set to consider
f2Second flag set to consider
Returns
True if f1 & f2 (after conversion to undersigned int) is true.

References drama::CreateRunDramaTask().