/usr/include/ncarg/ncl/FileSupport.h is in libncarg-dev 6.3.0-13.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* $Id: FileSupport.h 15249 2014-04-21 16:03:44Z huangwei $
*/
/************************************************************************
* *
* Copyright (C) 1994 *
* University Corporation for Atmospheric Research *
* All Rights Reserved *
* *
************************************************************************/
/*
* File: FileSupport.h
*
* Author: Ethan Alpert
* National Center for Atmospheric Research
* PO 3000, Boulder, Colorado
*
* Date: Thu Jul 14 14:38:17 MDT 1994
*
* Description:
*/
#ifndef _FileSupport_h
#define _FileSupport_h
#include "defs.h"
#include "NclMultiDValData.h"
#include "NclList.h"
extern NhlErrorTypes _NclBuildFileCoordRSelection(
#if NhlNeedProto
NclFile /*file*/,
NclQuark /*var*/,
struct _NclRangeRec * /*range*/,
struct _NclSelection* /*sel*/,
int /*dim_num*/,
char * /*dim_name*/
#endif
);
extern NhlErrorTypes _NclBuildFileCoordVSelection(
#if NhlNeedProto
struct _NclFileRec * /*file*/,
NclQuark /*var*/,
struct _NclVecRec * /*vec*/,
struct _NclSelection* /*sel*/,
int /*dim_num*/ ,
char * /*dim_name*/
#endif
);
extern NhlErrorTypes _NclBuildFileRSelection(
#if NhlNeedProto
NclFile /*file*/,
NclQuark /*var*/,
struct _NclRangeRec * /*range*/,
struct _NclSelection* /*sel*/,
int /*dim_num*/,
char * /*dim_name*/
#endif
);
extern NhlErrorTypes _NclBuildFileVSelection(
#if NhlNeedProto
struct _NclFileRec * /*file*/,
NclQuark /*var*/,
struct _NclVecRec * /*vec*/,
struct _NclSelection* /*sel*/,
int /*dim_num*/ ,
char * /*dim_name*/
#endif
);
extern NclObjTypes _NclFileVarRepValue(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* var */
#endif
);
extern struct _NclMultiDValDataRec* _NclFileVarCoerce(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* var */,
NclObjTypes /*coerce_to_obj*/,
NclScalar * /*new_missing*/
#endif
);
extern int _NclFileIsVar(
#if NhlNeedProto
NclFile /*thefile */,
NclQuark /* name */
#endif
);
extern int _NclFileIsGroup(
#if NhlNeedProto
NclFile /*thefile */,
NclQuark /* name */
#endif
);
extern NhlErrorTypes _NclFileWriteVar(
#if NhlNeedProto
NclFile /*thefile */,
NclQuark /*var_name*/,
struct _NclMultiDValDataRec * /* value */,
struct _NclSelectionRecord * /* sel_ptr */
#endif
);
extern NhlErrorTypes _NclFileWriteVarVar(
#if NhlNeedProto
NclFile /*thefile */,
NclQuark /*lhs_var_name*/,
struct _NclSelectionRecord * /* lhs_sel_ptr */,
struct _NclVarRec * /* rhs_var */,
struct _NclSelectionRecord * /* rhs_sel_ptr */
#endif
);
extern struct _NclFileRec *_NclFileReadGroup(
#if NhlNeedProto
NclFile /*thefile*/,
NclQuark /* grp_name */
#endif
);
extern struct _NclVarRec *_NclFileReadVar(
#if NhlNeedProto
NclFile /*thefile*/,
NclQuark /* var_name */,
struct _NclSelectionRecord * /*sel_ptr*/
#endif
);
extern struct _NclMultiDValDataRec *_NclFileReadVarValue(
#if NhlNeedProto
NclFile /*thefile*/,
NclQuark /*grp_name */,
struct _NclSelectionRecord * /*sel_ptr*/
#endif
);
extern int _NclFileIsAtt(
#if NhlNeedProto
NclFile /*thefile */,
NclQuark /* name */
#endif
);
extern struct _NclMultiDValDataRec* _NclFileReadAtt(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* attname */,
struct _NclSelectionRecord* /* sel_ptr*/
#endif
);
extern NhlErrorTypes _NclFileDeleteAtt(
#if NhlNeedProto
NclFile /*thefile;*/,
NclQuark /*attname;*/
#endif
);
extern NhlErrorTypes _NclFileWriteAtt(
#if NhlNeedProto
NclFile /*thefile;*/,
NclQuark /*attname;*/,
struct _NclMultiDValDataRec* /*value;*/,
struct _NclSelectionRecord * /*sel_ptr;*/
#endif
);
extern int _NclFileVarIsAtt(
#if NhlNeedProto
NclFile /*file*/,
NclQuark /* var */,
NclQuark /* attname*/
#endif
);
extern struct _NclMultiDValDataRec *_NclFileReadVarAtt(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* var */,
NclQuark /* attname */,
struct _NclSelectionRecord* /*sel_ptr*/
#endif
);
extern NhlErrorTypes _NclFileDeleteVarAtt(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* var */,
NclQuark /* attname */
#endif
);
extern NhlErrorTypes _NclFileWriteVarAtt(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* var */,
NclQuark /* attname */,
struct _NclMultiDValDataRec* /*value*/,
struct _NclSelectionRecord* /* sel_ptr*/
#endif
);
extern int _NclFileVarIsDim(
#if NhlNeedProto
NclFile /*thefile */,
NclQuark /* var*/,
NclQuark /* dimname */
#endif
);
extern int _NclFileIsDim(
#if NhlNeedProto
NclFile /*thefile */,
NclQuark /* dimname */
#endif
);
extern struct _NclMultiDValDataRec *_NclFileReadDim(
#if NhlNeedProto
NclFile /*thefile*/,
NclQuark /*dim_name*/,
long /*dim_num*/
#endif
);
extern NhlErrorTypes _NclFileWriteDim(
#if NhlNeedProto
NclFile /*thefile*/,
NclQuark /*dim_name*/,
long /*dim_num */
#endif
);
extern struct _NclMultiDValDataRec *_NclFileVarReadDim(
#if NhlNeedProto
NclFile /*thefile*/,
NclQuark /*var_name */,
NclQuark /*dim_name*/,
long /*dim_num*/
#endif
);
extern NhlErrorTypes _NclFileVarWriteDim(
#if NhlNeedProto
NclFile /*thefile*/,
NclQuark /* var_name */,
NclQuark /*dim_name*/,
long /*dim_num */
#endif
);
extern int _NclFileVarIsCoord(
#if NhlNeedProto
NclFile /*thefile */,
NclQuark /*coord_name */
#endif
);
extern struct _NclVarRec *_NclFileReadCoord(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* coord_name */,
struct _NclSelectionRecord* /* sel_ptr */
#endif
);
extern NhlErrorTypes _NclFileWriteCoord(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* coord_name */,
struct _NclMultiDValDataRec* /*value*/,
struct _NclSelectionRecord* /* sel_ptr */
#endif
);
extern NhlErrorTypes _NclFileAddDim(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* dimname */,
ng_size_t /* dimsize */,
int /* is_unlimited*/
#endif
);
extern NhlErrorTypes _NclFileAddVlen(NclFile thefile, NclQuark vlen_name, NclQuark var_name,
NclQuark type, NclQuark *dim_names, ng_size_t ndims);
extern NhlErrorTypes _NclFileAddEnum(NclFile thefile, NclQuark vlen_name, NclQuark var_name,
NclQuark dim_name, NclQuark *mem_name, void *mem_value,
ng_size_t n_mems, NclBasicDataTypes val_type);
extern NhlErrorTypes _NclFileAddOpaque(NclFile thefile, NclQuark vlen_name, NclQuark var_name,
int var_size, NclQuark dim_name);
extern NhlErrorTypes _NclFileAddCompound(NclFile thefile, NclQuark compound_name, NclQuark var_name,
ng_size_t n_dims, NclQuark *dim_name, ng_size_t n_mems,
NclQuark *mem_name, NclQuark *mem_type, int *mem_size);
extern NhlErrorTypes _NclFileWriteCompound(NclFile thefile, NclQuark compound_name, NclQuark var_name,
ng_size_t n_mems, NclQuark *mem_name, NclObj listobj);
extern NhlErrorTypes _NclFileAddGrp(NclFile thefile, NclQuark grpname);
extern NhlErrorTypes _NclFileAddChunkDim(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* dimname */,
ng_size_t /* dimsize */,
int /* is_unlimited*/
#endif
);
extern NhlErrorTypes _NclFileAddVar(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* varname */,
NclQuark /* type */,
int /* n_dims */,
NclQuark * /* dimnames */
#endif
);
extern NhlErrorTypes _NclFileAddVarChunk(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* varname */,
int /* n_dims */,
ng_size_t * /* dims */
#endif
);
extern NhlErrorTypes _NclFileAddVarChunkCache(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* varname */,
ng_size_t /* cache_size */,
ng_size_t /* cache_nelems */,
float /* cache_preemption */
#endif
);
extern NhlErrorTypes _NclFileSetVarCompressLevel(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* varname */,
int /* compress-level */
#endif
);
extern NhlErrorTypes _NclPrintFileVarSummary(
#if NhlNeedProto
NclFile /* thefile */,
NclQuark /* varname */
#endif
);
extern NclQuark *_NclGetFileGroupsList(
#if NhlNeedProto
NclFile /* the file*/,
NclQuark /* base_group_name */,
int /* depth */,
int * /* n_grps */
#endif
);
extern NclQuark *_NclGetGroupVarsList(
#if NhlNeedProto
NclFile /* the file*/,
NclQuark /* base_group_name */,
int /* depth */,
int * /* n_grps */
#endif
);
extern struct _NclApiDataList *_NclGetFileVarInfoList2(
#if NhlNeedProto
struct _NclFileRec * /*thefile*/
#endif
);
extern struct _NclApiDataList *_NclGetFileVarInfo1(struct _NclFileRec * /*thefile*/,
NclQuark /*file_var_name*/);
extern struct _NclApiDataList *_NclGetFileVarInfo2(
#if NhlNeedProto
struct _NclFileRec * /*thefile*/,
NclQuark /*file_var_name*/
#endif
);
extern struct _NclApiDataList *_NclGetFileInfo1(struct _NclFileRec * /*thefile*/);
extern struct _NclApiDataList *_NclGetFileInfo2(
#if NhlNeedProto
struct _NclFileRec * /*thefile*/
#endif
);
extern NhlErrorTypes _NclFileSetOption(
#if NhlNeedProto
NclFile /* thefile */, /* either a file or a format */
NclQuark /* format */,
NclQuark /* option */,
struct _NclMultiDValDataRec* /*value*/
#endif
);
extern int _NclFileIsOption(
#if NhlNeedProto
NclQuark /* format */,
NclQuark /* option */
#endif
);
extern NhlErrorTypes _NclFileSetOptionDefaults(
#if NhlNeedProto
NclQuark format, /* if NULL set defaults for all formats */
NclQuark option /* if NULL set defaults for all options */
#endif
);
extern NclFile _NclCreateFile(NclObj inst, NclObjClass theclass, NclObjTypes obj_type,
unsigned int obj_type_mask, NclStatus status,
NclQuark path, int rw_status);
extern NclGroup *_NclCreateGroup(NclObj inst, NclObjClass theclass, NclObjTypes obj_type,
unsigned int obj_type_mask, NclStatus status,
NclFile file_in, NclQuark group_name);
extern NhlErrorTypes _NclPrintFileSummary(NclObj self, FILE *fp);
extern NclQuark *_NclFileReadVarNames(NclFile thefile, int *num_vars);
extern NclQuark *_NclFileReadGrpNames(NclFile thefile, int *num_grps);
extern ng_size_t *_NclFileReadChunkSizes(NclFile thefile, int *nchunks);
extern int _NclFileReadCompressionLevel(NclFile thefile);
extern NclQuark _NclFileReadVersion(NclFile thefile);
extern int _isNewFileStructure(NclFile thefile);
extern void _NclInitFileClasses();
#endif /*_FileSupport_h */
|