API Guides > ConceptRT 3.x
Strings Class Referenceabstract

String collection abstraction. More...

Detailed Description

String collection abstraction.

+ Inheritance diagram for Strings:

Public Member Methods

virtual ~Strings ()
 Destructor. More...
 
virtual Int32 GetCount () const =0
 Gets the count. More...
 
virtual PCChar8 GetString (Int32 index) const =0
 Gets a string. More...
 
PCChar8 operator[] (Int32 index) const
 Array indexer operator. More...
 
void CheckCount (Int32 expectedValue) const
 Check count. Raise an exception whenever the count mismatch. More...
 
bool Contains (const PCChar8 text) const
 Query if this string collection contains the given text. More...
 

Constructor & Destructor Documentation

virtual ~Strings ( )
virtual

Destructor.

Methods Documentation

void CheckCount ( Int32  expectedValue) const

Check count. Raise an exception whenever the count mismatch.

Parameters
expectedValueThe expected value.
RT Exceptions:
RT_ERROR_CHECK_FAILD
bool Contains ( const PCChar8  text) const

Query if this string collection contains the given text.

Parameters
textThe text to test for containment.
Returns
true if the object is in this collection, false if not.
virtual Int32 GetCount ( ) const
pure virtual

Gets the count.

Returns
The count.

Implemented in PackedStrings, DynamicInvocationRequestParameters, and SubStrings.

virtual PCChar8 GetString ( Int32  index) const
pure virtual

Gets a string.

Parameters
indexZero-based index of the.
Returns
The string.
RT Exceptions:
RT_ERROR_OUT_OF_BOUND_INDEX

Implemented in PackedStrings, DynamicInvocationRequestParameters, and SubStrings.

PCChar8 operator[] ( Int32  index) const

Array indexer operator.

Parameters
indexZero-based index of the.
Returns
The indexed string.
RT Exceptions:
RT_ERROR_OUT_OF_BOUND_INDEX