Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Allocating space for data exchanges


Functions

int alloc_spec_mem (SPECTRUM *spectrum, short type)
int free_spec_mem (SPECTRUM *spectrum)
int alloc_frame_mem (IMAGE2D *frame, short type)
int free_frame_mem (IMAGE2D *frame)
int alloc_cube_mem (IMAGE3D *frame, short type)
int free_cube_mem (IMAGE3D *frame)
int alloc_new_desc (Anyfile *pt_file, short data_type, int nb_val)
int free_all_desc (Anyfile *pt_file)
int read_file_class (void *anyfile)
int set_super_class (void *anyfile)
int unset_super_class (void *anyfile)
int write_file_class (void *anyfile, int type)
int copy_table_desc (void *anyfile_in, void *anyfile_out)

Function Documentation

int alloc_spec_mem SPECTRUM spectrum,
short  type
 

allocate memory space for 1D frames

Parameters:
spectrum [SPECTRUM *] spectrum structure
type [short ] data type

Definition at line 769 of file io_misc.c.

References SPECTRUM::data, SPECTRUM::data_type, DOUBLE, FLOAT, INT, LONG, SPECTRUM::npts, SPECTRUM::quality, and SHORT.

Referenced by create_spec(), create_spec_mem(), extract_E3D_spec(), init_new_E3D_spec(), and open_spec().

int free_spec_mem SPECTRUM spectrum  ) 
 

free memory space for 1D frames

Parameters:
spectrum [SPECTRUM *] spectrum structure

Definition at line 803 of file io_misc.c.

References SPECTRUM::data, SPECTRUM::data_type, DOUBLE, FLOAT, INT, LONG, SPECTRUM::quality, and SHORT.

Referenced by close_spec(), delete_spec(), delete_tiger_spec(), get_E3D_frame(), and save_E3D_spec().

int alloc_frame_mem IMAGE2D frame,
short  type
 

allocate memory space for 2D frames

Parameters:
frame [IMAGE2D *] image structure
type [short ] data type

Definition at line 832 of file io_misc.c.

References IMAGE2D::data, IMAGE2D::data_type, DOUBLE, FLOAT, INT, LONG, IMAGE2D::nx, IMAGE2D::ny, IMAGE2D::quality, SHORT, and USHORT.

Referenced by create_frame(), get_E3D_frame(), and open_frame().

int free_frame_mem IMAGE2D frame  ) 
 

free memory space for 2D frames

Parameters:
frame [IMAGE2D *] image structure

Definition at line 870 of file io_misc.c.

References IMAGE2D::data, IMAGE2D::data_type, DOUBLE, FLOAT, INT, LONG, IMAGE2D::quality, and SHORT.

Referenced by close_frame(), and delete_frame().

int alloc_cube_mem IMAGE3D frame,
short  type
 

allocate memory space for 3D frames

Parameters:
frame [IMAGE3D *] image structure
type [short ] data type

Definition at line 899 of file io_misc.c.

References IMAGE3D::data, IMAGE3D::data_type, DOUBLE, FLOAT, INT, LONG, IMAGE3D::nx, IMAGE3D::ny, IMAGE3D::nz, IMAGE3D::quality, SHORT, and USHORT.

Referenced by create_cube(), and open_cube().

int free_cube_mem IMAGE3D frame  ) 
 

free memory space for 3D frames

Parameters:
frame [IMAGE3D *] image structure

Definition at line 939 of file io_misc.c.

References IMAGE3D::data, IMAGE3D::data_type, DOUBLE, FLOAT, INT, LONG, IMAGE3D::quality, and SHORT.

Referenced by close_cube(), and delete_cube().

int alloc_new_desc Anyfile pt_file,
short  data_type,
int  nb_val
 

allocate memory space for user descriptors

Parameters:
pt_file [Anyfile *] file structure pointer
data_type [short ] data type
nb_val [int ] number of occurence of data

Definition at line 969 of file io_misc.c.

References CHAR, Descriptor::data_type, Descr_Items::descr_list, Descriptor::descr_name, Descriptor::descr_value, Anyfile::external_info, lg_label, Descr_Items::nb_descr, Descriptor::nb_values, and sizeof_item().

Referenced by open_E3D_file(), and WR_desc().

int free_all_desc Anyfile pt_file  ) 
 

free memory space allocated for user descriptors

Parameters:
pt_file [Anyfile *] file structure

Definition at line 1008 of file io_misc.c.

References Descr_Items::descr_list, Descriptor::descr_name, Descriptor::descr_value, Anyfile::external_info, and Descr_Items::nb_descr.

Referenced by close_E3D_file().

int read_file_class void *  anyfile  ) 
 

read FCLASS descriptor in the frame for file class

Parameters:
anyfile [void *] file structure

Definition at line 1036 of file io_misc.c.

References disable_user_warnings(), INT, Anyfile::name, print_warning(), RD_desc(), restore_user_warnings(), and SUPER_CLASS.

int set_super_class void *  anyfile  ) 
 

write true in SFCLASS descriptor in the frame

Parameters:
anyfile [void *] file structure

Definition at line 1072 of file io_misc.c.

References disable_user_warnings(), INT, restore_user_warnings(), and WR_desc().

Referenced by write_file_class().

int unset_super_class void *  anyfile  ) 
 

write false in SFCLASS descriptor in the frame

Parameters:
anyfile [void *] file structure

Definition at line 1089 of file io_misc.c.

References disable_user_warnings(), INT, restore_user_warnings(), and WR_desc().

int write_file_class void *  anyfile,
int  type
 

write FCLASS descriptor in the frame for type description

Parameters:
anyfile [void *] file structure
type [int ] data type

Definition at line 1107 of file io_misc.c.

References disable_user_warnings(), INT, restore_user_warnings(), set_super_class(), SUPER_CLASS, and WR_desc().

int copy_table_desc void *  anyfile_in,
void *  anyfile_out
 

copy, if it exist, TABLE descriptor from inpiut file to outputfile

Parameters:
anyfile_in [void *] file structure
anyfile_out [void *] file structure

Definition at line 1268 of file io_misc.c.

References CHAR, disable_user_warnings(), lg_name, RD_desc(), restore_user_warnings(), and WR_desc().


Generated on Tue Jul 1 17:35:48 2003 for IFU_C_iolibs by doxygen1.3