RslStructArray Class Reference

RslStructArray Class Reference

#include <RslPlugin.h>

Public Member Functions

 RslStructArray (const RslArg *arg)
 Construct an RslStructArray from an RslArg.
 
RslStruct operator[] (int i) const
 Get the specified element of this struct array.
 
int GetLength () const
 Returns the array length.
 

Detailed Description

An RslStructArray represents an array of structs. It provides an indexing operator that returns an RslStruct. For example:

RslStructArray array(argv[1]);
int arrayLength = array.GetLength();
for (int i = 0; i < arrayLength; ++i) {
RslStruct structure(array[i]);
const RslArg* floatMember = structure[0];
RslFloatIter f(floatMember);
int n = floatMember->NumValues();
for (int j = 0; j < n; ++j) {
...
}
}

The documentation for this class was generated from the following file: