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

◆ AddToArgCmdStruct()

template<typename ContainerType >
void drama::sds::Id::AddToArgCmdStruct ( const ContainerType values,
const unsigned  firstArg = 1 
)
inline

Insert a set of values from a container into an SDS structure in in the DRAMA Command style.

This method adds a new set of values to an existing SDS structure. The values are all of the same type and are given the names Argument<n>, Argument<n+1> etc, where <n> is an integer given by the "firstArg" argument.

This method can be used to fill out value in an existing DRAMA Command style ArgStructure item.

See also
drama::sds::CreateArgCmdStruct()
Template Parameters
ContainerTypeFor the container itself, any acceptable to a "for" loop with "auto" range should work (so any STL container and C style arrays). The item within the container must be acceptable to the drama::sds::Id::Put() with name methods, e.g. bool, char, short, unsigned short, INT32, UINT32, INT64, UINT64, float and double. Also the string representation std::string.
Parameters
valuesThe values to be inserted into the structure.
firstArgThe number associated with the first item in the structure. By setting this you can build a structure in various calls

References drama::CreateRunDramaTask(), and Put().