PANDORE Version 6 |
GREYC-IMAGE |
pcreatearray
Creates array in collection.
Synopsis
pcreatearray name type size value [col_out|-]
Description
pcreatearray creates a new collection col_out with one
array named name that contains size values value
of type type.
Parameters
- name is the base name of the array.
It is string without blank character.
- type is a basic type among
Char, Uchar, Short, Ushort, Long, Ulong, Float, Double.
- size is the size of the array.
- value is the initial value of type type.
Outputs
Result
Returns SUCCESS or FAILURE.
Examples
Creates an array with 128 float values 10.5:
pcreatearray foo float 128 10.5 col.pan
pcol2txt col.pan
See also
Array
Prototypes C++
Errc CreateArray( Collection &col_out, Long size, Uchar value, std::string name );
Version française
Création d'une collection contenant un vecteur vierge.
Author: Alexandre Duret-Lutz