diff options
Diffstat (limited to 'tools/testfiles/tenum.ddl')
-rw-r--r-- | tools/testfiles/tenum.ddl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/testfiles/tenum.ddl b/tools/testfiles/tenum.ddl new file mode 100644 index 0000000..8f45f43 --- /dev/null +++ b/tools/testfiles/tenum.ddl @@ -0,0 +1,30 @@ +HDF5 "tenum.h5" { +GROUP "/" { + DATATYPE "enum normal" { + H5T_ENUM + { H5T_STD_I32BE; + "RED" 0; + "GREEN" 1; + "BLUE" 2; + "WHITE" 3; + "BLACK" 4; + } + } + DATASET "table" { + DATATYPE { H5T_ENUM + { H5T_STD_I32BE; + "RED" 0; + "GREEN" 1; + "BLUE" 2; + "WHITE" 3; + "BLACK" 4; + } + } + DATASPACE { SIMPLE ( 20 ) / ( 20 ) } + DATA { + RED, GREEN, BLUE, GREEN, WHITE, WHITE, BLACK, GREEN, BLUE, RED, RED, + BLUE, GREEN, BLACK, WHITE, RED, WHITE, GREEN, GREEN, BLUE + } + } +} +} |