File: text-table.h

package info (click to toggle)
word2x 1.5-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 228 kB
  • ctags: 326
  • sloc: cpp: 3,076; ansic: 350; makefile: 64
file content (25 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* $Id: text-table.h,v 1.2 1997/03/22 17:07:58 dps Exp $ */

#ifndef __txt_table__
#define __txt_table__
#include <stdio.h>

class text_table
{
private:
    struct col_info
    {
	const char **data;
	struct col_info *next;
    };
    int cols;
    int rows;
    struct col_info *cdata;

public:
    const char *print_table(int, FILE *);
    int set(int, int, const char *);
    text_table(int, int);
    ~text_table(void);
};
#endif /* __txt_table__ */