mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
a37ca49d25
re: PR https://github.com/Unidata/netcdf-c/pull/2655 This PR modifies the transient types PR so that all created transient types are given a created unique name (within a group). The form of the name is "_Anonymous<Class>NN". The class is the user-defined type class: Enum, Compound, Opaque, or Vlen. NN is an integer identifier to ensure uniqueness. Additionally, this was applied to DAP/4 anonymous dimensions. This also required some test baseline data changes. The transient test case is modified to verify that the name exists.
28 lines
500 B
Plaintext
28 lines
500 B
Plaintext
netcdf test_atomic_array {
|
|
types:
|
|
opaque(16) opaque16_t ;
|
|
dimensions:
|
|
_AnonymousDim1 = 1 ;
|
|
_AnonymousDim2 = 2 ;
|
|
variables:
|
|
ubyte vu8(_AnonymousDim1, _AnonymousDim2) ;
|
|
double vd(_AnonymousDim1) ;
|
|
string vs(_AnonymousDim1, _AnonymousDim1) ;
|
|
opaque16_t vo(_AnonymousDim1, _AnonymousDim1) ;
|
|
|
|
// global attributes:
|
|
string :_dap4.ce = "/vu8[1][0:2:2];/vd[1];/vs[1][0];/vo[0][1]" ;
|
|
data:
|
|
|
|
vu8 =
|
|
3, 5 ;
|
|
|
|
vd = 1024.8 ;
|
|
|
|
vs =
|
|
"Καλημέα" ;
|
|
|
|
vo =
|
|
0XABCDEF00000000000000000000000000 ;
|
|
}
|