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

◆ Parameter()

drama::Parameter< drama::sds::Id >::Parameter ( std::weak_ptr< Task task,
const std::string &  name,
const sds::IdPtr initVal,
bool  copy = true 
)

Construct a parameter of a given name.

Parameters
taskThe DRAMA Task we are part of. This is passed by pointer, but Parameter is not taking ownership of the subject object, which must continue to exist until the Parameter object is destroyed.
nameThe name of the parameter.
initValThe initial value of the parameter.
copyDo we copy the referenced SDS item, or can we insert it as is, taking control of the item.