-
Notifications
You must be signed in to change notification settings - Fork 59
/
hds.h
1115 lines (791 loc) · 34.1 KB
/
hds.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Protect against multiple inclusion */
#ifndef STAR_HDS_H_INCLUDED
#define STAR_HDS_H_INCLUDED
#include "dat_par.h"
/* Relative location of type definitions depends on whether we are
building the library or using the installed version */
#if HDS_INTERNAL_INCLUDES
# include "hds_types.h"
#else
# include "star/hds_types.h"
#endif
/*=================================*/
/* datAlter - Alter size of object */
/*=================================*/
int
datAlter(HDSLoc *locator, int ndim, const hdsdim dims[], int *status);
/*==========================*/
/* datAnnul - Annul locator */
/*==========================*/
int
datAnnul(HDSLoc **locator, int *status);
/*==============================================*/
/* datBasic - Map data (in basic machine units) */
/*==============================================*/
int
datBasic(const HDSLoc *locator, const char *mode_c, unsigned char **pntr, size_t *len, int *status);
/*=====================================*/
/* datCcopy - copy one structure level */
/*=====================================*/
int
datCcopy(const HDSLoc *locator1, const HDSLoc *locator2, const char *name, HDSLoc **locator3, int *status);
/*=======================================*/
/* datCctyp - construct _CHAR*nnn string */
/*=======================================*/
void
datCctyp(size_t size, char type[DAT__SZTYP+1]);
/*===========================================*/
/* datCell - Locate a "cell" (array element) */
/*===========================================*/
int
datCell(const HDSLoc *locator1, int ndim, const hdsdim subs[], HDSLoc **locator2, int *status);
/*=================================================*/
/* datChscn - validate the supplied component name */
/*=================================================*/
int
datChscn(const char * name, int *status);
/*==========================================*/
/* datClen - Obtain character string length */
/*==========================================*/
int
datClen(const HDSLoc *locator, size_t *clen, int *status);
/*===========================*/
/* datClone - clone locator */
/*===========================*/
int
datClone(const HDSLoc *locator1, HDSLoc **locator2, int *status);
/*================================*/
/* datCoerc - coerce object shape */
/*================================*/
int
datCoerc(const HDSLoc *locator1, int ndim, HDSLoc **locator2, int *status);
/*=======================*/
/* datCopy - copy object */
/*=======================*/
int
datCopy(const HDSLoc *locator1, const HDSLoc *locator2, const char *name_c, int *status);
/*============================================================*/
/* datDrep - Obtain primitive data representation information */
/*============================================================*/
int
datDrep(const HDSLoc *locator, char **format_str, char **order_str, int *status);
/*========================================*/
/* datErase - Erase object */
/*========================================*/
int
datErase(const HDSLoc *locator, const char *name_str, int *status);
/*===========================================================*/
/* datErmsg - Translate a status value into an error message */
/*===========================================================*/
int
datErmsg(int status, size_t *len, char *msg_str);
/*================================*/
/* datFind - Find named component */
/*================================*/
int
datFind(const HDSLoc *locator1, const char *name_str, HDSLoc **locator2, int *status);
/*============================*/
/* datGet - Read primitive(s) */
/*============================*/
int
datGet(const HDSLoc *locator, const char *type_str, int ndim, const hdsdim dims[], void *values, int *status);
/*===================================*/
/* datGetC - Read _CHAR primitive(s) */
/*===================================*/
int
datGetC(const HDSLoc *locator, const int ndim, const hdsdim dims[], char values[], size_t char_len, int *status);
/*=====================================*/
/* datGetD - Read _DOUBLE primitive(s) */
/*=====================================*/
int
datGetD(const HDSLoc *locator, int ndim, const hdsdim dims[], double values[], int *status);
/*======================================*/
/* datGetI - Read _INTEGER primitive(s) */
/*======================================*/
int
datGetI(const HDSLoc *locator, int ndim, const hdsdim dims[], int values[], int *status);
/*======================================*/
/* datGetK - Read _INT64 primitive(s) */
/*======================================*/
int
datGetK(const HDSLoc *locator, int ndim, const hdsdim dims[], int64_t values[], int *status);
/*===================================*/
/* datGetW - Read _WORD primitive(s) */
/*===================================*/
int
datGetW(const HDSLoc *locator, int ndim, const hdsdim dims[], short values[], int *status);
/*===================================*/
/* datGetUW - Read _UWORD primitive(s) */
/*===================================*/
int
datGetUW(const HDSLoc *locator, int ndim, const hdsdim dims[], unsigned short values[], int *status);
/*======================================*/
/* datGetL - Read _LOGICAL primitive(s) */
/*======================================*/
int
datGetL(const HDSLoc *locator, int ndim, const hdsdim dims[], hdsbool_t values[], int *status);
/*===================================*/
/* datGetR - Read _REAL primitive(s) */
/*===================================*/
int
datGetR(const HDSLoc *locator, int ndim, const hdsdim dims[], float values[], int *status);
/*======================================*/
/* datGet0C - Read scalar string value */
/*======================================*/
int
datGet0C(const HDSLoc * locator, char * value, size_t len, int * status);
/*======================================*/
/* datGet0D - Read scalar double value */
/*======================================*/
int
datGet0D(const HDSLoc * locator, double * value, int * status);
/*=====================================*/
/* datGet0R - Read scalar float value */
/*=====================================*/
int
datGet0R(const HDSLoc * locator, float * value, int * status);
/*=======================================*/
/* datGet0I - Read scalar integer value */
/*=======================================*/
int
datGet0I(const HDSLoc * locator, int * value, int * status);
/*================================================*/
/* datGet0K - Read scalar 64-bit integer value */
/*================================================*/
int
datGet0K(const HDSLoc * locator, int64_t * value, int * status);
/*=============================================*/
/* datGet0W - Read scalar short integer value */
/*=============================================*/
int
datGet0W(const HDSLoc * locator, short * value, int * status);
/*=============================================*/
/* datGet0UW - Read scalar unsigned short integer value */
/*=============================================*/
int
datGet0UW(const HDSLoc * locator, unsigned short * value, int * status);
/*=======================================*/
/* datGet0L - Read scalar logical value */
/*=======================================*/
int
datGet0L(const HDSLoc * locator, hdsbool_t * value, int * status);
/*==================================*/
/* DAT_GET1C - Read 1D string array */
/*==================================*/
int
datGet1C(const HDSLoc * locator, size_t maxval, size_t bufsize, char *buffer, char *pntrs[], size_t * actval, int * status);
/*==================================*/
/* DAT_GET1D - Read 1D Double array */
/*==================================*/
int
datGet1D(const HDSLoc * locator, size_t maxval, double values[], size_t *actval, int * status);
/*==================================*/
/* DAT_GET1I - Read 1D Integer array */
/*==================================*/
int
datGet1I(const HDSLoc * locator, size_t maxval, int values[], size_t *actval, int * status);
/*============================================*/
/* DAT_GET1K - Read 1D 64-bit Integer array */
/*============================================*/
int
datGet1K(const HDSLoc * locator, size_t maxval, int64_t values[], size_t *actval, int * status);
/*=========================================*/
/* DAT_GET1W - Read 1D Short Integer array */
/*=========================================*/
int
datGet1W(const HDSLoc * locator, size_t maxval, short values[], size_t *actval, int * status);
/*===================================================*/
/* DAT_GET1UW - Read 1D Unsigned Short Integer array */
/*===================================================*/
int
datGet1UW(const HDSLoc * locator, size_t maxval, unsigned short values[], size_t *actval, int * status);
/*==================================*/
/* DAT_GET1R - Read 1D REAL array */
/*==================================*/
int
datGet1R(const HDSLoc * locator, size_t maxval, float values[], size_t *actval, int * status);
/*==================================*/
/* DAT_GET1L - Read 1D Logical array */
/*==================================*/
int
datGet1L(const HDSLoc * locator, size_t maxval, hdsbool_t values[], size_t *actval, int * status);
/*==================================*/
/* DAT_GETVC - Read vectorized 1D string array */
/*==================================*/
int
datGetVC(const HDSLoc * locator, size_t maxval, size_t bufsize, char *buffer, char *pntrs[], size_t * actval, int * status);
/*==========================================*/
/* DAT_GETVD - Read vectorized Double array */
/*==========================================*/
int
datGetVD(const HDSLoc * locator, size_t maxval, double values[], size_t *actval, int * status);
/*==========================================*/
/* DAT_GETVI - Read vectorized Integer array */
/*==========================================*/
int
datGetVI(const HDSLoc * locator, size_t maxval, int values[], size_t *actval, int * status);
/*==========================================*/
/* DAT_GETVK - Read vectorized Int64 array */
/*==========================================*/
int
datGetVK(const HDSLoc * locator, size_t maxval, int64_t values[], size_t *actval, int * status);
/*==========================================*/
/* DAT_GETVR - Read vectorized REAL array */
/*==========================================*/
int
datGetVR(const HDSLoc * locator, size_t maxval, float values[], size_t *actval, int * status);
/*==========================================*/
/* DAT_GETVL - Read vectorized Logical array */
/*==========================================*/
int
datGetVL(const HDSLoc * locator, size_t maxval, hdsbool_t values[], size_t *actval, int * status);
/*======================================*/
/* datIndex - Index into component list */
/*======================================*/
int
datIndex(const HDSLoc *locator1, int index, HDSLoc **locator2, int *status);
/*===================================*/
/* datLen - Inquire primitive length */
/*===================================*/
int
datLen(const HDSLoc *locator, size_t *len, int *status);
/*===========================*/
/* datMap - Map primitive(s) */
/*===========================*/
int
datMap(const HDSLoc *locator, const char *type_str, const char *mode_str, int ndim, const hdsdim dims[], void **pntr, int *status);
/*==================================*/
/* datMapC - Map _CHAR primitive(s) */
/*==================================*/
int
datMapC(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], unsigned char **pntr, int *status);
/*====================================*/
/* datMapD - Map _DOUBLE primitive(s) */
/*====================================*/
int
datMapD(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], double **pntr, int *status);
/*=====================================*/
/* datMapI - Map _INTEGER primitive(s) */
/*=====================================*/
int
datMapI(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], int **pntr, int *status);
/*=====================================*/
/* datMapK - Map _INT64 primitive(s) */
/*=====================================*/
int
datMapK(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], int **pntr, int *status);
/*=====================================*/
/* datMapL - Map _LOGICAL primitive(s) */
/*=====================================*/
int
datMapL(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], hdsbool_t **pntr, int *status);
/*==================================*/
/* datMapR - Map _REAL primitive(s) */
/*==================================*/
int
datMapR(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], float **pntr, int *status);
/*========================================*/
/* datMapN - Map primitive as N-dim array */
/*========================================*/
int
datMapN(const HDSLoc *locator, const char *type_str, const char *mode_str, int ndim, void **pntr, hdsdim dims[], int *status);
/*==================================*/
/* datMapV - Map vectorized primitive(s) */
/*==================================*/
int
datMapV(const HDSLoc *locator, const char *type_str, const char *mode_str, void **pntr, size_t *actval, int *status);
/*==================================*/
/* datMould - Alter shape of object */
/*==================================*/
int
datMould(const HDSLoc *locator, int ndim, const hdsdim dims[], int *status);
/*=======================*/
/* datMove - Move object */
/*=======================*/
int
datMove(HDSLoc **locator1, const HDSLoc *locator2, const char *name_str, int *status);
/*======================================*/
/* datMsg - store filename in EMS token */
/*======================================*/
void
datMsg(const char * token, const HDSLoc * locator);
/*===============================*/
/* datName - Enquire object name */
/*===============================*/
int
datName(const HDSLoc *locator, char name_str[DAT__SZNAM+1], int *status);
/*=========================================*/
/* datNcomp - Inquire number of components */
/*=========================================*/
int
datNcomp(const HDSLoc *locator, int *ncomp, int *status);
/*===============================*/
/* datNew - Create new component */
/*===============================*/
int
datNew(const HDSLoc *locator, const char *name_str, const char *type_str, int ndim, const hdsdim dims[], int *status);
/*============================================*/
/* datNewC - Create new _CHAR type component */
/*============================================*/
int
datNewC(const HDSLoc *locator, const char *name_str, size_t len, int ndim, const hdsdim dims[], int *status);
/*=======================================*/
/* datNew0 - Create new scalar component */
/*=======================================*/
int
datNew0(const HDSLoc *locator, const char *name_str, const char *type_str, int *status);
/*===============================================*/
/* datNew0D - Create new scalar double component */
/*===============================================*/
int
datNew0D(const HDSLoc *locator, const char *name_str, int *status);
/*================================================*/
/* datNew0I - Create new scalar integer component */
/*================================================*/
int
datNew0I(const HDSLoc *locator, const char *name_str, int *status);
/*=========================================================*/
/* datNew0K - Create new scalar 64-bit integer component */
/*=========================================================*/
int
datNew0K(const HDSLoc *locator, const char *name_str, int *status);
/*======================================================*/
/* datNew0W - Create new scalar short integer component */
/*======================================================*/
int
datNew0W(const HDSLoc *locator, const char *name_str, int *status);
/*================================================================*/
/* datNew0UW - Create new scalar unsigned short integer component */
/*================================================================*/
int
datNew0UW(const HDSLoc *locator, const char *name_str, int *status);
/*=============================================*/
/* datNew0R - Create new scalar real component */
/*=============================================*/
int
datNew0R(const HDSLoc *locator, const char *name_str, int *status);
/*================================================*/
/* datNew0L - Create new scalar logical component */
/*================================================*/
int
datNew0L(const HDSLoc *locator, const char *name_str, int *status);
/*================================================*/
/* datNew0L - Create new scalar logical component */
/*================================================*/
int
datNew0C(const HDSLoc *locator, const char *name_str, size_t len, int *status);
/*=======================================*/
/* datNew1 - Create new vector component */
/*=======================================*/
int
datNew1(const HDSLoc *locator, const char *name_str, const char *type_str, size_t len, int *status);
/*=======================================*/
/* datNew1C - Create new vector string */
/*=======================================*/
int
datNew1C(const HDSLoc *locator, const char *name_str, size_t len, size_t nelem, int *status);
/*=======================================*/
/* datNew1d - Create new vector double */
/*=======================================*/
int
datNew1D(const HDSLoc *locator, const char *name_str, size_t len, int *status);
/*=======================================*/
/* datNew1I - Create new vector integer */
/*=======================================*/
int
datNew1I(const HDSLoc *locator, const char *name_str, size_t len, int *status);
/*================================================*/
/* datNew1K - Create new vector 64-bit integer */
/*================================================*/
int
datNew1K(const HDSLoc *locator, const char *name_str, size_t len, int *status);
/*=============================================*/
/* datNew1W - Create new vector short integer */
/*=============================================*/
int
datNew1W(const HDSLoc *locator, const char *name_str, size_t len, int *status);
/*=======================================================*/
/* datNew1UW - Create new vector unsigned short integer */
/*=======================================================*/
int
datNew1UW(const HDSLoc *locator, const char *name_str, size_t len, int *status);
/*=======================================*/
/* datNew1L - Create new vector logical */
/*=======================================*/
int
datNew1L(const HDSLoc *locator, const char *name_str, size_t len, int *status);
/*=======================================*/
/* datNew1R - Create new vector float */
/*=======================================*/
int
datNew1R(const HDSLoc *locator, const char *name_str, size_t len, int *status);
/*====================================*/
/* datParen - Locate parent structure */
/*====================================*/
int
datParen(const HDSLoc *locator1, HDSLoc **locator2, int *status);
/*=====================================*/
/* datPrec - Enquire storage precision */
/*=====================================*/
int
datPrec(const HDSLoc *locator, size_t *nbytes, int *status);
/*====================================*/
/* datPrim - Enquire object primitive */
/*====================================*/
int
datPrim(const HDSLoc *locator, hdsbool_t *prim, int *status);
/*=========================================================*/
/* datPrmry - Set/Enquire primary/secondary locator status */
/*=========================================================*/
int
datPrmry(int set, HDSLoc **locator, hdsbool_t *prmry, int *status);
/*==================================*/
/* datPutC - Write _CHAR primitive */
/*==================================*/
int
datPutC(const HDSLoc *locator, int ndim, const hdsdim dims[], const char string[], size_t string_length, int *status);
/*====================================*/
/* datPutD - Write _DOUBLE primitives */
/*====================================*/
int
datPutD(const HDSLoc *locator, int ndim, const hdsdim dims[], const double values[], int *status);
/*=====================================*/
/* datPutI - Write _INTEGER primitives */
/*=====================================*/
int
datPutI(const HDSLoc *locator, int ndim, const hdsdim dims[], const int values[], int *status);
/*=====================================*/
/* datPutK - Write _INT64 primitives */
/*=====================================*/
int
datPutK(const HDSLoc *locator, int ndim, const hdsdim dims[], const int64_t values[], int *status);
/*=====================================*/
/* datPutW - Write _WORD primitives */
/*=====================================*/
int
datPutW(const HDSLoc *locator, int ndim, const hdsdim dims[], const short values[], int *status);
/*====================================*/
/* datPutUW - Write _UWORD primitives */
/*====================================*/
int
datPutUW(const HDSLoc *locator, int ndim, const hdsdim dims[], const unsigned short values[], int *status);
/*==================================*/
/* datPutR - Write _REAL primitives */
/*==================================*/
int
datPutR(const HDSLoc *locator, int ndim, const hdsdim dims[], const float values[], int *status);
/*=====================================*/
/* datPutL - Write _LOGICAL primitives */
/*=====================================*/
int
datPutL(const HDSLoc *locator, int ndim, const hdsdim dims[], const hdsbool_t values[], int *status);
/*==========================*/
/* datPut - Write primitive */
/*==========================*/
int
datPut(const HDSLoc *locator, const char *type_str, int ndim, const hdsdim dims[], const void *values, int *status);
/*=======================================*/
/* datPut0C - Write scalar string value */
/*=======================================*/
int
datPut0C(const HDSLoc * locator, const char * value, int * status);
/*=======================================*/
/* datPut0D - Write scalar double value */
/*=======================================*/
int
datPut0D(const HDSLoc * locator, double value, int * status);
/*======================================*/
/* datPut0R - Write scalar float value */
/*======================================*/
int
datPut0R(const HDSLoc * locator, float value, int * status);
/*========================================*/
/* datPut0I - Write scalar integer value */
/*========================================*/
int
datPut0I(const HDSLoc * locator, int value, int * status);
/*========================================*/
/* datPut0I - Write scalar 64-bit integer value */
/*========================================*/
int
datPut0K(const HDSLoc * locator, int64_t value, int * status);
/*==============================================*/
/* datPut0W - Write scalar short integer value */
/*===============================================*/
int
datPut0W(const HDSLoc * locator, short value, int * status);
/*========================================================*/
/* datPut0UW - Write scalar unsigned short integer value */
/*========================================================*/
int
datPut0UW(const HDSLoc * locator, unsigned short value, int * status);
/*========================================*/
/* datPut0L - Write scalar logical value */
/*========================================*/
int
datPut0L(const HDSLoc * locator, hdsbool_t value, int * status);
/*========================================*/
/* datPut1C - Write 1D character array */
/*========================================*/
int
datPut1C(const HDSLoc * locator, size_t nval, const char *values[], int * status);
/*========================================*/
/* datPut1D - Write 1D double array */
/*========================================*/
int
datPut1D(const HDSLoc * locator, size_t nval, const double values[], int * status);
/*========================================*/
/* datPut1I - Write 1D int array */
/*========================================*/
int
datPut1I(const HDSLoc * locator, size_t nval, const int values[], int * status);
/*========================================*/
/* datPut1K - Write 1D 64-bit int array */
/*========================================*/
int
datPut1K(const HDSLoc * locator, size_t nval, const int64_t values[], int * status);
/*===========================================*/
/* datPut1W - Write 1D short int array */
/*===========================================*/
int
datPut1W(const HDSLoc * locator, size_t nval, const short values[], int * status);
/*===============================================*/
/* datPut1UW - Write 1D unsigned short int array */
/*===============================================*/
int
datPut1UW(const HDSLoc * locator, size_t nval, const unsigned short values[], int * status);
/*========================================*/
/* datPut1R - Write 1D double array */
/*========================================*/
int
datPut1R(const HDSLoc * locator, size_t nval, const float values[], int * status);
/*========================================*/
/* datPut1L - Write 1D Logical/int array */
/*========================================*/
int
datPut1L(const HDSLoc * locator, size_t nval, const hdsbool_t values[], int * status);
/*================================================*/
/* datPutVD - Write vectorized double array */
/*================================================*/
int
datPutVD(const HDSLoc * locator, size_t nval, const double values[], int * status);
/*================================================*/
/* datPutVI - Write vectorized int array */
/*================================================*/
int
datPutVI(const HDSLoc * locator, size_t nval, const int values[], int * status);
/*================================================*/
/* datPutVI - Write vectorized int64 array */
/*================================================*/
int
datPutVK(const HDSLoc * locator, size_t nval, const int64_t values[], int * status);
/*================================================*/
/* datPutVR - Write vectorized REAL/float array */
/*================================================*/
int
datPutVR(const HDSLoc * locator, size_t nval, const float values[], int * status);
/*================================================*/
/* datPutVL - Write vectorized Logical array */
/*================================================*/
int
datPutVL(const HDSLoc * locator, size_t nval, const hdsbool_t values[], int * status);
/*================================================*/
/* datPutVC - Write vectorized character array */
/*================================================*/
int
datPutVC(const HDSLoc * locator, size_t nval, const char *values[], int * status);
/*========================================*/
/* datRef - Enquire object reference name */
/*========================================*/
int
datRef(const HDSLoc * locator, char * ref, size_t reflen, int *status);
/*===================================================*/
/* datRefct - Enquire container file reference count */
/*===================================================*/
int
datRefct(const HDSLoc *locator, int *refct, int *status);
/*=============================*/
/* datRenam - Rename an object */
/*=============================*/
int
datRenam(const HDSLoc *locator, const char *name_str, int *status);
/*================================*/
/* datReset - Reset object state */
/*================================*/
int
datReset(const HDSLoc *locator, int *status);
/*================================*/
/* datRetyp - Change object type */
/*================================*/
int
datRetyp(const HDSLoc *locator, const char *type_str, int *status);
/*=================================*/
/* datShape - Enquire object shape */
/*=================================*/
int
datShape(const HDSLoc *locator, int maxdim, hdsdim dims[], int *actdim, int *status);
/*===============================*/
/* datSize - Enquire object size */
/*===============================*/
int
datSize(const HDSLoc *locator, size_t *size, int *status);
/*================================*/
/* datSlice - Locate object slice */
/*================================*/
int
datSlice(const HDSLoc *locator1, int ndim, const hdsdim lower[], const hdsdim upper[], HDSLoc **locator2, int *status);
/*=================================*/
/* datState - Enquire object state */
/*=================================*/
int
datState(const HDSLoc *locator, hdsbool_t *state, int *status);
/*=====================================*/
/* datStruc - Enquire object structure */
/*=====================================*/
int
datStruc(const HDSLoc *locator, hdsbool_t *struc, int *status);
/*===================================*/
/* datTemp - Create temporary object */
/*===================================*/
int
datTemp(const char *type_str, int ndim, const hdsdim dims[], HDSLoc **locator, int *status);
/*=========================================*/
/* datThere - Enquire component existence */
/*=========================================*/
int
datThere(const HDSLoc *locator, const char *name_c, hdsbool_t *there, int *status);
/*===============================*/
/* datType - Enquire object type */
/*===============================*/
int
datType(const HDSLoc *locator, char type_str[DAT__SZTYP + 1], int *status);
/*=========================*/
/* datUnmap - Unmap object */
/*=========================*/
int
datUnmap(const HDSLoc *locator, int *status);
/*==================================*/
/* datValid - Enquire locator valid */
/*==================================*/
int
datValid(const HDSLoc *locator, hdsbool_t *valid, int *status);
/*===========================*/
/* datVec - Vectorise object */
/*===========================*/
int
datVec(const HDSLoc *locator1, HDSLoc **locator2, int *status);
/*================================================*/
/* datWhere - Find primitive position in HDS file */
/* Currently not part of the public */
/* C API */
/*================================================*/
/*==================================================*/
/* hdsCopy - Copy an object to a new container file */
/*==================================================*/
int
hdsCopy(const HDSLoc *locator, const char *file_str, const char name_str[DAT__SZNAM], int *status);
/*=================================*/
/* hdsErase - Erase container file */
/*=================================*/
int
hdsErase(HDSLoc **locator, int *status);
/*===============================================================*/
/* hdsEwild - End a wild card search for HDS container files */
/*===============================================================*/
int
hdsEwild(int *iwld, int *status);
/*================================*/
/* hdsFlush - Flush locator group */
/*=================================*/
int
hdsFlush(const char *group_str, int *status);
/*===============================*/
/* hdsFree - Free container file */
/*===============================*/
int
hdsFree(const HDSLoc *locator, int *status);
/*==================================*/
/* hdsGroup - Enquire locator group */
/*==================================*/
int