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

◆ Put() [4/5]

template<typename T >
void drama::sds::Id::Put ( const unsigned long  length,
const T *const  data,
const unsigned long  offset = 0 
)
inline

Put data into an SDS item.

This method put the data into an SDS item. The data is copied into the specified buffer.

Note that data from nested structures is also copied. Please see the SDS manual for more details on Put operations.

See also
SdsPut()
sds::Id::Get
sds::Id::Pointer
SdsGet()
Template Parameters
TThe type of the data item. TThis needs to be a of standard layout, trivial (Plain old data) types, if not, compile will fail with a static assertion.
Parameters
lengthThe length of the data to put.
dataThe buffer of the data, must of of size length or greater.
offsetAn offset into the SDS structure to start putting the data from. By elements.
Examples
argtest.cpp.

References drama::CreateRunDramaTask(), and DramaTHROW.

Referenced by AddToArgCmdStruct().