| 1 | #cxx . . $ `<file>/frmts/pcraster/libcsf/attravai.c`/include "csf.h"cxx . . $ `<file>/frmts/pcraster/libcsf/csf.h`/ |
| 2 | #include "csfimpl.h"cxx . . $ `<file>/frmts/pcraster/libcsf/csfimpl.h`/ |
| 3 | |
| 4 | /* check if an attribute is available |
| 5 | * MattributeAvail search for the given id in the map. |
| 6 | * |
| 7 | * returns |
| 8 | * 0 if the attribute is not available, |
| 9 | * nonzero if the attribute is available |
| 10 | * |
| 11 | * Merrno |
| 12 | * ILLHANDLE |
| 13 | */ |
| 14 | int MattributeAvailcxx . . $ MattributeAvail(4564cf3652d82238).( |
| 15 | MAPcxx . . $ MAP# *m, /* map handle */ |
| 16 | CSF_ATTR_IDcxx . . $ CSF_ATTR_ID# id) /* identification of attribute */ |
| 17 | { |
| 18 | ATTR_CNTRL_BLOCKcxx . . $ ATTR_CNTRL_BLOCK# b; |
| 19 | |
| 20 | if (! CsfIsValidMapcxx . . $ CsfIsValidMap(308c4db0723a8e8e).(m)) |
| 21 | return 0; |
| 22 | return(CsfGetAttrBlockcxx . . $ CsfGetAttrBlock(5a1479c267ae994).(m, id, &b) != 0); |
| 23 | } |