|
AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
| 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.
| task | The 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. |
| name | The name of the parameter. |
| initVal | The initial value of the parameter. |
| copy | Do we copy the referenced SDS item, or can we insert it as is, taking control of the item. |