The ITContainer interface
Base class: ITEssential
Returns one value from a set of values. ITContainer is used by the ITContainerIter class to iterate over the values contained in an object.
The unknwn argument of the GetItem method is the address of a pointer
to an ITEssential interface of an object that will be
the parent of any subobjects that might be created by the method.
The newly created subobject returns its own ITEssential interface
pointer in the argument if the object delegation was successful. The
subobject reference count is 1 after the call, even if the ITEssential interface is passed back to the caller.
The default argument is NULL
to indicate that no object
delegation is to be performed.
This interface provides the following methods.
Method | Description |
---|---|
long NumItems() | Returns the number of items in this object. |
ITValue *GetItem(long position, ITEssential * *unknwn = NULL) | Returns the value interface pointer for a contained item. Returns NULL if the position is invalid. |