Functions | Modes |
---|---|
ier = cgio_get_node_id(int cgio_num, double pid, const char *pathname, double *id); | r w m |
ier = cgio_get_name(int cgio_num, double id, char *name); | r w m |
ier = cgio_set_name(int cgio_num, double pid, double id, const char *name); | - w m |
ier = cgio_get_label(int cgio_num, double id, char *label); | r w m |
ier = cgio_set_label(int cgio_num, double id, const char *label); | - w m |
ier = cgio_get_data_type(int cgio_num, double id, char *data_type); | r w m |
ier = cgio_get_dimensions(int cgio_num, double id, int *ndims, cgsize_t *dims); | r w m |
ier = cgio_set_dimensions(int cgio_num, double id, const char *data_type, int ndims, const cgsize_t *dims); | - w m |
call cgio_get_node_id_f(cgio_num, pid, name, id, ier) | r w m |
call cgio_get_name_f(cgio_num, id, name, ier) | r w m |
call cgio_set_name_f(cgio_num, pid, id, name, ier) | - w m |
call cgio_get_label_f(cgio_num, id, label, ier) | r w m |
call cgio_set_label_f(cgio_num, id, label, ier) | - w m |
call cgio_get_data_type_f(cgio_num, id, data_type, ier) | r w m |
call cgio_get_dimensions_f(cgio_num, id, ndims, dims, ier) | r w m |
call cgio_set_dimensions_f(cgio_num, id, data_type, ndims, dims, ier) | - w m |
cgio_num | Database identifier. | ||
pid | Parent node identifier. | ||
id | Node identifier. | ||
pathname | Absolute or relative path name for a node. | ||
name | Node name (max length 32). | ||
label | Node label (max length 32). | ||
data_type | Type of data contained in the node. One of "MT", "I4", "I8", "U4", "U8", "R4", "C1", or "B1". | ||
ndims | Number of dimensions for the data (max 12). | ||
dims | Data dimension values (ndims values). | ||
ier | Error status. |
"MT" An empty node containing no data "I4" 32-bit integer (int or integer*4) "I8" 64-bit integer (cglong_t or integer*8) "U4" 32-bit unsigned integer (unsigned int or integer*4) "U8" 64-bit unsigned integer (cgulong_t or integer*8) "R4" 32-bit real (float or real*4) "R8" 64-bit real (double or real*8) "C1" character (char or character) "B1" unsigned bytes (unsigned char or character*1)The number of dimensions is given by ndims (maximum is 12), and the dimension values by dims. Note that any existing data for the node will be destroyed. To add the data to the node, use one of the data writing routines. The function returns 0 for success, else an error code.