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

◆ ExportDefined()

template<class ContainerType >
void drama::sds::Id::ExportDefined ( ContainerType container) const
inline

Export the SDS structure into a buffer, defining any undefined data.

The SDS structure refered to by this sds::Id object is exported into the specified buffer, with any undefined data defined.

Data may be undefined if you created a new item but have not yet put any data into it. The standard Export() method does not allow space for this data, but this method does.

See also
SdsExportDefined()
sds::Id::Export
Template Parameters
ContainerTypeA container that has a size() method and for which "&container[0]" will return the address of a byte array into which the data can be written. E.g. std::array<unsigned char> or std::vector<unsigned char>. The container must be a container of standard layout, trivial (Plain old data) types, if not, compile will fail with a static assertion.
Parameters
containerThe buffer to write the data into.

References drama::CreateRunDramaTask(), and DramaTHROW.