The PBBoundedObjectArrayCreator class is used to create an object array.
PBBoundedObjectArrayCreator has two methods:
Obtains an array that has been created.
GetArray()
pbarray.
This example sets the values in an array and then uses GetArray to obtain the array:
PBBoundedObjectArrayCreator<pbvalue_string> ac(session); for (i=0;i<itemcount1;i++) { ac.SetAt(i+1,iarg[i]); } out_array = ac.GetArray();
Sets the array item at the specified dimension.
For arrays of a specified ValueType:
SetAt(pblong dim[], ValueType v)
For string arrays:
SetAt(pblong dim[], LPCTSTR string)
SetAt(pblong dim[], pbstring string)
Argument |
Description |
---|---|
dim |
The dimension of the array item to be set |
v |
A ValueType defined in pbtraits.h |
string |
A string of type pbstring or LPCTSTR |
None.
This method is included in the example for GetArray.