mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +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.
19 lines
537 B
Plaintext
19 lines
537 B
Plaintext
netcdf test_enum_array {
|
|
types:
|
|
byte enum cloud_class_t {Clear = 0, Cumulonimbus = 1, Stratus = 2,
|
|
Stratocumulus = 3, Cumulus = 4, Altostratus = 5, Nimbostratus = 6,
|
|
Altocumulus = 7, Cirrostratus = 8, Cirrocumulus = 9, Cirrus = 10,
|
|
Missing = 127} ;
|
|
dimensions:
|
|
_AnonymousDim2 = 2 ;
|
|
variables:
|
|
cloud_class_t primary_cloud(_AnonymousDim2) ;
|
|
cloud_class_t primary_cloud:_FillValue = Missing ;
|
|
|
|
// global attributes:
|
|
string :_dap4.ce = "/primary_cloud[1:2:4]" ;
|
|
data:
|
|
|
|
primary_cloud = Stratus, Cumulonimbus ;
|
|
}
|