#include <xsi_siobject.h>
An array of SIObjects.
using namespace XSI; Application app; CSIObjectRefArray lights = app.FindObjects( XSI::siLightID ); for ( LONG i=0; i< lights.GetCount(); i++ ) { app.LogMessage( "Light: " + lights[i].GetFullName() + L":" + lights[i].GetFullName() ); }
Public Member Functions |
|
CSIObjectRefArray () | |
CSIObjectRefArray (const CSIObjectRefArray &) | |
~CSIObjectRefArray () | |
CSIObjectRefArray & | operator= (const CSIObjectRefArray &in_refArray) |
CRef | GetItem (const CString &in_name) const |
void | Add (const CRef &in_item) |
void | RemoveItem (const CString &in_name) |
Default constructor.
CSIObjectRefArray | ( | const CSIObjectRefArray & | ) |
Copy constructor. Performs a shallow copy, so any change to one instance will appear in any of the copies.
~CSIObjectRefArray | ( | ) |
Default destructor.
CSIObjectRefArray& operator= | ( | const CSIObjectRefArray & | in_refArray | ) |
Assign a CSIObjectRefArray object to this one.
in_refArray | A constant CSIObjectRefArray object. |
Returns a CRef object matching a given name. The method returns an invalid CRef if the name doesn't match. The array doesn't handle objects with identical names, accessing multiple objects by name will always return the first one.
in_name | The name of an object to retrieve. |
Reimplemented from CRefArray.
void Add | ( | const CRef & | in_item | ) | [virtual] |
void RemoveItem | ( | const CString & | in_name | ) |
Removes an object from the CSIObjectRefArray. The array doesn't handle objects with identical names, removing multiple objects by name will always remove the first one.
in_name | Name of the object to remove. |