RDTA.PickDP.Connector.connDynamicArray Class

A connDynamicArray consists of a series of sections separated by delimiters. Each section can contain a string and optional subsections. Section indexing starts at 0. In the example below, section A has an index of 0 and section B is at index position 1.

 

 

Unless otherwise noted, all methods function against the current segment. Thus, to get the value of segment Blue from the connDynamicArray called foo with the structure below, the following C++ instruction is used:

 

String x  = foo.get_Item(0).get_Item(2).get_Item(1).Value;

 

where

 

0

Retrieves section A.

2

Retrieves section Two.

Note: index 0 = section A

          index 1 = section One

1

Retrieves section Blue.

 Note: index 0 = section Two

 

 

 Public Constructors

New

Constructor.

Public Methods

Add

Adds the Value as a child or a subsection at the end of the current Section.

clear

Removes the contents of the connDynamicArray regardless of the current section.

Equals

Compares the contents of the dynamic array with the specified value.

get_Parent

Gets the parent segment of the current segment.

hasChildren

Returns true if the current segment contains subsegments.

IndexOf

Returns the index of the first instance of the specified string in the section. Sub-sections are not searched.

Insert

Inserts the specified Value as a subsection in the current section at the specified index.

isEmpty

Returns true if the current segment contains no data.

LastIndexOf

Returns the index to the last instance of the specified string at or after the specified starting index position. Only sibling sections are searched. Subsections are not searched.

Locate

Returns the index of the specified Value in the current segment. If the segment is sorted, specifying the sort order enables fast searches.

MemberwiseClone

Returns a copy of the current instance.

remove

Removes the current connDynamicArray at the specified index.

Set_Parent

Returns the parent segment of the current segment. For internal use only.

Sort

Sorts the current connDynamicArray segment.

ToString

Returns the string representation (not the contents) of the instance.

Public Properties

Name

Type

Description

Count

Integer

Returns the number of sub-segments in the current segments.

Item

Integer

Returns the connDynamicArray at the specified index in the current segment. Implemented in VB, but not C# or J#.

LocatePosition

Integer

After a locate method does not find the specified Value, LocatePosition contains the index where the value should be inserted into the connDynamicArray to maintain the sort order of the data.

Value

String

Returns or sets the contents of the current segment.

Constants

Name

Type

Description

kAscending

Integer

Indicates a descending sort order.

kDescending

Integer

Indicates an ascending sort order.

kNoOrder

Integer

Indicates the data is not ordered.

Examples