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

◆ CreateChildArray() [1/2]

template<class ContainerType >
Id drama::sds::Id::CreateChildArray ( const std::string &  name,
const SdsCodeType  code,
const ContainerType dims,
const std::string &  extra = "" 
) const
inline

Factory constructor method Constructor which creates a new child item which is an multi-dimensional array.

This non-static factory sds::Id constructor creates a new SDS array item which is a child of this SDS item.

The object on which the method is invoked must reference an SDS Structure item (rather then an array or primitive). It must also be an internal item (rather then external).

See also
SdsNew()
Parameters
nameThe name for the new SDS item.
codeThe SDS code for the new item. A maximum of 7 dimensions are supported.
dimsA container giving each dimension. A maximum of 7 dimensions are supported
extraThe extra data, if any. Defaults to none.
Template Parameters
ContainerTypeA container with a size() method and which can be used to initialize a vector of unsigned long.
Returns
An Id providing a reference to the array.

References drama::CreateRunDramaTask(), and DramaTHROW_S.

Referenced by drama::ArrayParameter< SDS_T >::ArrayParameter().