File: tabledata.h

package info (click to toggle)
gps 0.9.4-1.woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 964 kB
  • ctags: 928
  • sloc: cpp: 10,822; sh: 381; makefile: 307; ansic: 227; perl: 17
file content (48 lines) | stat: -rw-r--r-- 910 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* $Id: tabledata.h,v 1.4 2000/02/20 21:45:36 bergo Exp $ */

#ifndef GPS_TABLEDATA_H

#define MAXTDATA 16

/// an auxiliary linked list of vectors used to help sorting the process list.
class tabledata {
 public:

  /// trivial constructor
  tabledata();

  /// trivial destructor
  ~tabledata();

  /// returns next node, NULL if none exists.
  tabledata *getNext();

  /// sets next node on list to be x.
  void setNext(tabledata *x);

  /// returns the number of nodes in the list.
  int count();

  /// sets the i-th value to a.
  void setv(int i,char *a);

  /// returns the i-th value.
  char * getv(int i);

  /// appends td to this list
  void add(tabledata *td);

  /// sets current item selected
  void select_item();

  /// returns whether this item is selected
  gboolean selected();

 private:
  tabledata *next;
  char *pointers[MAXTDATA];
  gboolean selflag;
};

#define GPS_TABLEDATA_H
#endif