|
AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
|
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.
| code | SDS 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. |
| dims | The expected dimensions. |
| ContainerType | A 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_F.