OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
epr_field.h
Go to the documentation of this file.
1 /*
2  * $Id: epr_field.h,v 1.1.1.1 2004-10-28 19:22:23 norman Exp $
3  *
4  * Copyright (C) 2002 by Brockmann Consult (info@brockmann-consult.de)
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the
8  * Free Software Foundation. This program is distributed in the hope it will
9  * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
10  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16  */
17 
18 #ifndef EPR_FIELD_H_INCL
19 #define EPR_FIELD_H_INCL
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #include <stdio.h> /* just to get the ANSI-C type FILE */
26 
31 struct EPR_FieldInfo {
35  char* name;
36 
41 
46 
50  char* unit;
51 
55  char* description;
56 
63 };
64 
65 EPR_SFieldInfo* epr_create_field_info(EPR_EDataTypeId data_type_id, char* description, char* field_name, epr_uint num_elems, epr_uint num_bytes, epr_uint more_count, char* unit);
66 EPR_SField* epr_create_field(EPR_SFieldInfo* field_info);
67 void epr_free_field_info(EPR_SFieldInfo* field_info);
68 void epr_free_field(EPR_SField* field);
69 
70 #ifdef __cplusplus
71 } /* extern "C" */
72 #endif
73 
74 #endif
75 /* #ifndef EPR_FIELD_H_INCL */
epr_uint tot_size
Definition: epr_field.h:62
char * description
Definition: epr_field.h:55
epr_uint num_elems
Definition: epr_field.h:45
unsigned int epr_uint
Definition: epr_api.h:188
char * name
Definition: epr_field.h:35
EPR_EDataTypeId data_type_id
Definition: epr_field.h:40
char * unit
Definition: epr_field.h:50
void epr_free_field(EPR_SField *field)
Definition: epr_field.c:218
description
Definition: setup.py:16
EPR_SField * epr_create_field(EPR_SFieldInfo *field_info)
Definition: epr_field.c:147
enum EPR_DataTypeId EPR_EDataTypeId
Definition: epr_api.h:161
EPR_SFieldInfo * epr_create_field_info(EPR_EDataTypeId data_type_id, char *description, char *field_name, epr_uint num_elems, epr_uint num_bytes, epr_uint more_count, char *unit)
Definition: epr_field.c:52
void epr_free_field_info(EPR_SFieldInfo *field_info)
Definition: epr_field.c:111