OC Updated for version 2.0
Defines | Typedefs | Enumerations
Constants, types, etc.

Defines

#define OC_MAX_DIMENSIONS   1024
#define OCDATA   OCDATADDS
#define OCONDISK   1
#define OCLOGNOTE   0
#define OCLOGWARN   1
#define OCLOGERR   2
#define OCLOGDBG   3

Typedefs

typedef enum OCdxd OCdxd
typedef int OCflags
typedef enum OCtype OCtype
typedef enum OCerror OCerror
typedef void * OCobject
typedef OCobject OCddsnode
typedef OCobject OCdatanode
typedef OCobject OClink

Enumerations

enum  OCdxd { OCDDS = 1, OCDAS = 2, OCDATADDS = 3 }
enum  OCtype {
  OC_NAT = 0, OC_Char = 1, OC_Byte = 2, OC_UByte = 3,
  OC_Int16 = 4, OC_UInt16 = 5, OC_Int32 = 6, OC_UInt32 = 7,
  OC_Int64 = 8, OC_UInt64 = 9, OC_Float32 = 10, OC_Float64 = 11,
  OC_String = 12, OC_URL = 13, OC_Atomic = 100, OC_Dataset = 101,
  OC_Sequence = 102, OC_Grid = 103, OC_Structure = 104, OC_Dimension = 105,
  OC_Attribute = 106, OC_Attributeset = 107
}
enum  OCerror {
  OC_NOERR = 0, OC_EBADID = -1, OC_ECHAR = -2, OC_EDIMSIZE = -3,
  OC_EEDGE = -4, OC_EINVAL = -5, OC_EINVALCOORDS = -6, OC_ENOMEM = -7,
  OC_ENOTVAR = -8, OC_EPERM = -9, OC_ESTRIDE = -10, OC_EDAP = -11,
  OC_EXDR = -12, OC_ECURL = -13, OC_EBADURL = -14, OC_EBADVAR = -15,
  OC_EOPEN = -16, OC_EIO = -17, OC_ENODATA = -18, OC_EDAPSVC = -19,
  OC_ENAMEINUSE = -20, OC_EDAS = -21, OC_EDDS = -22, OC_EDATADDS = -23,
  OC_ERCFILE = -24, OC_ENOFILE = -25, OC_EINDEX = -26, OC_EBADTYPE = -27,
  OC_ESCALAR = -28
}

Define Documentation

#define OC_MAX_DIMENSIONS   1024

OC_MAX_DIMS is the maximum allowable number of dimensions. Ideally, it should be greater or equal to max allowed by dap or netcdf

Definition at line 27 of file oc.h.

#define OCDATA   OCDATADDS

Define an alias for OCDATADDS

Definition at line 41 of file oc.h.

#define OCLOGDBG   3

Tag a log entry as a debug note.

Definition at line 144 of file oc.h.

#define OCLOGERR   2

Tag a log entry as an error.

Definition at line 140 of file oc.h.

#define OCLOGNOTE   0

Tag a log entry as a note.

Definition at line 132 of file oc.h.

#define OCLOGWARN   1

Tag a log entry as a warning.

Definition at line 136 of file oc.h.

#define OCONDISK   1

Cause oc_fetch to store the retrieved data on disk.

Definition at line 52 of file oc.h.


Typedef Documentation

The OCdatanode type provide a reference to a specific piece of data in the data part of a Datadds.

Definition at line 172 of file oc.h.

The OCddsnode type provide a reference to a component of a DAS or DDS tree: e.g. Sequence, Grid, Dataset, etc. These objects are nested, so most objects reference a container object and subnode objects. The term ddsnode is slightly misleading since it also covers DAS nodes.

Definition at line 164 of file oc.h.

typedef enum OCdxd OCdxd
typedef enum OCerror OCerror

Define flags for oc_fetch.

Definition at line 47 of file oc.h.

Think of OClink as analogous to the C stdio FILE structure; it "holds" all the other state info about a connection to the server, the url request, and the DAS/DDS/DATADDSinfo. 3/24/210: Renamed from OCconnection because of confusion about term "connection"

Definition at line 181 of file oc.h.

Define a common opaque type.

Definition at line 152 of file oc.h.

typedef enum OCtype OCtype

Enumeration Type Documentation

enum OCdxd

Define the legal kinds of fetch: DAS, DDS, or DataDDS

Enumerator:
OCDDS 
OCDAS 
OCDATADDS 

Definition at line 32 of file oc.h.

enum OCerror

Define the set of error return codes. The set consists of oc errors (negative values) plus the set of system errors, which are positive.

Enumerator:
OC_NOERR 
OC_EBADID 
OC_ECHAR 
OC_EDIMSIZE 
OC_EEDGE 
OC_EINVAL 
OC_EINVALCOORDS 
OC_ENOMEM 
OC_ENOTVAR 
OC_EPERM 
OC_ESTRIDE 
OC_EDAP 
OC_EXDR 
OC_ECURL 
OC_EBADURL 
OC_EBADVAR 
OC_EOPEN 
OC_EIO 
OC_ENODATA 
OC_EDAPSVC 
OC_ENAMEINUSE 
OC_EDAS 
OC_EDDS 
OC_EDATADDS 
OC_ERCFILE 
OC_ENOFILE 
OC_EINDEX 
OC_EBADTYPE 
OC_ESCALAR 

Definition at line 97 of file oc.h.

enum OCtype

Define the set of legal types. The set is divided into two parts. The atomic types define leaf nodes of the DDS. The non-atomic types are used to tag internal nodes of the DDS tree.

Enumerator:
OC_NAT 
OC_Char 
OC_Byte 
OC_UByte 
OC_Int16 
OC_UInt16 
OC_Int32 
OC_UInt32 
OC_Int64 
OC_UInt64 
OC_Float32 
OC_Float64 
OC_String 
OC_URL 
OC_Atomic 
OC_Dataset 
OC_Sequence 
OC_Grid 
OC_Structure 
OC_Dimension 
OC_Attribute 
OC_Attributeset 

Definition at line 62 of file oc.h.