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

◆ ArrayParameter()

drama::ArrayParameter< std::string >::ArrayParameter ( std::weak_ptr< Task task,
const std::string &  name,
unsigned  nElements,
unsigned  strLen = 100,
const std::string  initVal = "" 
)

Construct a parameter of a given name which is an array of scalar items.

All entries will be initialized to the specified value.

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.
nElementsThe number of elements for in the array.
strLenThe length of each string in the array.
initValThe initial values for the array items. The array is filled with this value to ensure that at no time are the values undefined.