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

◆ CreateChildItem()

virtual Id drama::sds::Id::CreateChildItem ( const std::string &  name,
const SdsCodeType  code,
const std::string &  extra = "" 
) const
virtual

Factory constructor method which creates a new (non-array) child item.

This non-static factory sds::Id constructor creates a new SDS 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.
extraThe extra data, if any. Defaults to none.
Returns
An Id providing a reference to the structure.