FrontPanel API 5.3.6
|
A collection of script values. More...
Public Member Functions | |
ScriptValues () | |
Creates an empty collection. | |
void | Clear () |
Removes all values from the collection. | |
void | Add (const ScriptValue &value) |
Add another value to the collection. | |
void | Set (const ScriptValue &value) |
Clears the previous collection contents and add the given value to it. | |
int | GetCount () const |
Return the number of elements in the collection, possibly 0. | |
ScriptValue | Get (int n=0) const |
Objects of this type can be copied and assigned, just as ScriptValue objects themselves.
ScriptValue OpalKelly::ScriptValues::Get | ( | int | n = 0 | ) | const |
Get the collection element at the given index.
Throws a std::exception-derived
exception if the index is out of range, i.e. negative or greater or equal than GetCount().