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

◆ CheckItem()

template<class ContainerType >
void drama::sds::Id::CheckItem ( SdsCodeType  code,
const ContainerType dims 
) const
inline

Check an item has a required structure.

A common requirement for the user of the SDS library is to check that a specified SDS item has the right format - type code, number of dimensions and dimensions. This utility function implements such a check.

See also
ArgCheckItem()
Parameters
codeSDS Code we expect. The normal SDS code values, or ARG_STRING, in which case we mean SDS_CHAR but the ndims value is bumped by 1 automatically.
If specified as -1, then the code is ignored.
dimsThe expected dimensions.
Template Parameters
ContainerTypeA container with a size() method and which can be used to initialize a vector of long (not unsigned long as used elsewhere.)

References drama::CreateRunDramaTask(), DramaTHROW, and DramaTHROW_S.