Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

chirp_dual_array.h

00001 #ifndef CHIRP_DUAL_ARRAY_H
00002 #define CHIRP_DUAL_ARRAY_H
00003 
00004 /* create a new array at the given path, return zero on failure*/
00005 struct chirp_dual_array * chirp_dual_array_create( const char * host, const char *path, int width, int height, int element_size,time_t stoptime);
00006 
00007 /* open an existing array, return zero on failure */
00008 struct chirp_dual_array * chirp_dual_array_open( const char * host, const char *path,time_t stoptime  );
00009 
00010 
00011 struct chirp_array * get_row_array(struct chirp_dual_array *a);
00012 struct chirp_array * get_col_array(struct chirp_dual_array *a);
00013 /* return the proprerties of this currently open array */
00014 int chirp_dual_array_width( struct chirp_dual_array *a );
00015 int chirp_dual_array_height( struct chirp_dual_array *a );
00016 int chirp_dual_array_element_size( struct chirp_dual_array *a );
00017 
00018 /* get the indicated element and copy it to the pointer data */
00019 int  chirp_dual_array_get( struct chirp_dual_array *a, int i, int j, void *data ,time_t stoptime );
00020 
00021 /* set the indicated element by copying it to the pointer data */
00022 int  chirp_dual_array_set( struct chirp_dual_array *a, int i, int j, const void *data ,time_t stoptime );
00023 
00024 /* get the indicated row and copy it to the pointer data */
00025 int chirp_dual_array_get_row( struct chirp_dual_array *a, int i, void *data ,time_t stoptime );
00026 
00027 /* get the indicated col and copy it to the pointer data */
00028 int chirp_dual_array_get_col( struct chirp_dual_array *a, int i, void *data ,time_t stoptime );
00029 
00030 /* set the indicated row by copying it to the pointer data */
00031 int  chirp_dual_array_set_row( struct chirp_dual_array *a, int i, const void *data ,time_t stoptime );
00032 
00033 /* set the indicated col by copying it to the pointer data */
00034 int chirp_dual_array_set_col( struct chirp_dual_array *a, int i,const void *data ,time_t stoptime );
00035 
00036 /*delete a chirp array*/
00037 int chirp_dual_array_delete( struct chirp_dual_array *a,time_t stoptime);
00038 
00039 /* close this array and free all related resources */
00040 void chirp_dual_array_close( struct chirp_dual_array *a,time_t stoptime);
00041 
00042 #endif

Generated on Wed Jun 11 10:05:15 2008 for cctools by  doxygen 1.3.9.1