Text_Table_h (ul_oocbs)

*
#ifndef __TEXT_TABLE__*
#define __TEXT_TABLE__ 1

#include "cns_data_structs.h"
#include "cnsparam.h"
#include "cbslib.h"
#include "clib.h"
#include "acnet_errors.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "hello.h"
#include "UL_PHYSLIB:PHYSLIB.H"


#define TEXT_TABLE_WORKING_SIZE 32768
#define TEXT_TABLE_MAX_WIDTH 132
#define TEXT_TABLE_MAX_COLS 16

#define TEXT_TABLE_SUCCESS 0
#define TEXT_TABLE_BAD_TYPE -1

typedef struct _Text_Table Text_Table;
typedef (*Text_Table_destroy_func)(Text_Table const *theTable);
typedef (*Text_Table_display_func)(Text_Table const *theTable,int const row,
	const int col, const int width, const int depth);

struct _Text_Table
	{
	Text_Table_destroy_func			destroy;
	Text_Table_display_func			display;
	int					rows;
	int					cols;
	int					max_width;
	int					actual_width;
	char *					format[TEXT_TABLE_MAX_COLS];
	void *					array[TEXT_TABLE_MAX_COLS];	
	int					type[TEXT_TABLE_MAX_COLS];
	int					color[TEXT_TABLE_MAX_COLS];
	int					width[TEXT_TABLE_MAX_COLS];
	int					location[TEXT_TABLE_MAX_COLS];
	char *					buffer;
	char *					title_buffer;
	};

Text_Table *create_Text_Table(void *arrays[],const int types[],
	char *formats[], char *titles[], const int rows, 
	const int ncols, const int width);

#endif