-
Notifications
You must be signed in to change notification settings - Fork 0
/
PM_NODE.H
36 lines (31 loc) · 951 Bytes
/
PM_NODE.H
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
//////////////////////////////////////////////////////////////////////////////
// FILE: PM_NODE.H
// HIST: 980614 V0.1 - Derived from PM_HEARD.H
//
//////////////////////////////////////////////////////////////////////////////
#ifndef _PM_NODE_H
#define _PM_NODE_H
#define MAXNODES 50
#define MAX_AGE 5
typedef struct _nodelistentry {
char station[15];
char node[15];
char alias[15];
char via[15];
int quality;
time_t timestamp; // Time of entry
};
class NODElist {
public:
// functions
NODElist(int size = MAXNODES); // constructor
int analyze(char *instr,time_t timestamp);
int add(char *call, char *node, char *alias, char *via, int quality,time_t timestamp);
int find(char *reporting_station, char *node,char *alias, char *via);
void display(void);
// variables
int no_nodes; // number of nodes in the list
int max_nodes;
_nodelistentry *table;
};
#endif // _PM_NODE_H