FrontPanel API 5.3.6
Loading...
Searching...
No Matches
OpalKelly::ScriptValues Class Reference

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
 

Detailed Description

Objects of this type can be copied and assigned, just as ScriptValue objects themselves.

Member Function Documentation

◆ Get()

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().


Copyright (c) 2005-2024 Opal Kelly Incorporated