All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

System Interface CATICStringList

System.IUnknown
  |
  +---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:
CATIStringList, CATICStringListImpl


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 HRESULT Add( const int iPosition,
const char* iItem)= 0
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 HRESULT Count(unsigned int* oCount)= 0
Returns the number of elements in the list.
Parameters:
oCount
Number of elements
o Item
public virtual HRESULT Item( const int iPosition,
char** oItem)= 0
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 HRESULT Remove( const char* iItem)= 0
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 © 2003, Dassault Systèmes. All rights reserved.