The getData method returns an Array of Arrays containing the data stored in a Result object. The returned Array may actually be considered as a two-dimensional Array with as many lines as there are pairs of key-value in the Result object. Each line of the Array contains 6, 8 or 11 elements:
The method may have 5, 4, 3, 2, 1 or no argument. The arguments correspond to the type of the Array elements corresponding to elemId, nodeId, layerId, subLayerId or coordSysId. In the returned Array, these elements may be of String or Integer types. Correspondingly the arguments are Strings the value of which can be "int", "string" or any other String. If any other String is used as argument (for example a void string), the default Integer or String type elements are returned.
For element, node and layer ids, the negative values correspond to “special” values. (See Tables I.4.2 to I.4.4.)
integer in C++ “value” class | returned value in ruby |
-9999 | nil |
-2000 | "userCS" |
-1000 | "projCS" |
-5 | "elemIJK" |
-4 | "plyCS" |
-3 | "matCS" |
-2 | "nodeCS" |
-1 | "elemCS" |
any other integer | the same integer |