PageRenderTime 46ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 27ms app.codeStats 0ms

/source/NCDFProtocols.h

http://github.com/paleoterra/PaleoNetCDF
C Header | 51 lines | 33 code | 9 blank | 9 comment | 0 complexity | ba85c2f27a840f6758bff4c3711a2a59 MD5 | raw file
 1//
 2//  NCDFProtocols.h
 3//  netcdf
 4//
 5//  Created by tmoore on Wed Jun 23 2007.
 6//  Copyright (c) 2002 Argonne National Laboratory. All rights reserved.
 7//
 8
 9
10
11#import <Foundation/Foundation.h>
12
13@class NCDFAttribute,NCDFSlab;
14@protocol NCDFImmutableVariableProtocol
15
16//variable metadata
17-(NSString *)variableName;
18-(NSString *)variableType;
19-(nc_type)variableNC_TYPE;
20-(NSString *)variableDimDescription;
21-(NSString *)dataTypeWithDimDescription;
22-(NSArray *)getVariableAttributes;
23-(BOOL)isDimensionVariable;
24-(int)sizeUnitVariable;
25-(int)sizeUnitVariableForType;
26-(int)currentVariableSize;
27-(int)currentVariableByteSize;
28-(NSArray *)lengthArray;
29-(BOOL)isUnlimited;
30-(int)unlimitedVariableLength;
31-(NSArray *)dimensionNames;
32-(NSArray *)allVariableDimInformation;
33-(NCDFAttribute *)variableAttributeByName:(NSString *)name;
34-(int)variableID;
35-(int)attributeCount;
36
37
38//variable data
39-(NSData *)readAllVariableData;
40-(id)getSingleValue:(NSArray *)coordinates;
41-(NSData *)getValueArrayAtLocation:(NSArray *)startCoordinates edgeLengths:(NSArray *)edgeLengths;
42-(NCDFSlab *)getSlabForStartCoordinates:(NSArray *)startCoordinates edgeLengths:(NSArray *)edgeLengths;
43-(NCDFSlab *)getAllDataInSlab;
44@end
45
46@protocol NCDFImmutableDimensionProtocol
47
48-(NSString *)dimensionName;
49-(size_t)dimLength;
50-(BOOL)isUnlimited;
51@end