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

◆ Get()

template<class ContainerType , typename std::enable_if< std::is_base_of< ArgFlagVal, typename ContainerType::value_type >::value >::type * = nullptr>
unsigned drama::gitarg::ArgFlags< ContainerType, >::Get ( const sds::Id Id,
const unsigned  First = 1,
unsigned  Last = 0,
const bool  FailOnInvalid = true 
)
inline

Get argument flag value set from an SDS structure.

The value (as returned by this method or GetVal() is zeroed on entry.

For each string flag name found in the argument structure, the corresponding flag value is or-ed into the resulting value. If the method throws, any valid values found before the throw will be set in a subsequent call to GetVal()

Parameters
IdThe SDS structure to read the flags from
FirstPosition of first argument to consider (1+)
LastPosition of last argument to consider. A value of 0 means to consider all found. Note - the first time we don't find any value (empty string or no such argument) we return immediately)
FailOnInvalidDo we fail (throw) if a value is found which is not a flag value. Otherwise we ignore invalid values.
Returns
The flags which are set. Can also be returned later using GetVal();

References drama::CreateRunDramaTask(), and DramaTHROW_S.

Referenced by drama::gitarg::ArgFlags< ContainerType, >::ArgFlags().