System Interface CATICStringList

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATICStringList

Interface to handle a list of strings.
Role: The first element in the list has index 0.

See also:
,


Method Index


o Add(int,char*)
Adds an element at a given position in the list.
o Count(unsigned int*)
Returns the number of elements in the list.
o Item(int,char**)
Returns the iPosition-th element.
o Remove(char*)
Removes the first occurence of an element from the list.

Methods


o Add
public virtual Add( const iPosition,
const iItem)
Adds an element at a given position in the list. If iPosition does not respect respect the following rule: 0 <= position <= Count, E_FAIL is returned.
Parameters:
iPosition
Position of the added element in the list.
iItem
Element to be added.
o Count
public virtual Count( oCount)
Returns the number of elements in the list.
Parameters:
oCount
Number of elements
o Item
public virtual Item( const iPosition,
oItem)
Returns the iPosition-th element. If iPosition does not respect respect the following rule: 0 <= position <= Count, E_FAIL is returned.
Parameters:
iPosition
iPosition
Element to be returned.
oItem
Returned element.
o Remove
public virtual Remove( const iItem)
Removes the first occurence of an element from the list. If the element cannot be found in the list, E_FAIL is returned.
Parameters:
iItem
Element to be removed.

This object is included in the file: CATICStringList.h

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.