-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoutingTable.h
More file actions
39 lines (33 loc) · 842 Bytes
/
RoutingTable.h
File metadata and controls
39 lines (33 loc) · 842 Bytes
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
#pragma once
#include <iostream>
#include <string>
#include <sstream>
#include <stdlib.h>
#include <stdio.h>
#include <fstream>
#include "Node.h"
#include "NodeList.h"
using namespace std;
Node* newNode(char nodeletter);
class RoutingTable{
private:
int size;
NodeList* array;
public:
// See RoutingTable.cpp for desciprtions of functions.
RoutingTable();
void makeRoutingTable();
void parseData();
void parseData( string line );
void addEdge( int w, int port, char star, char destination );
void printTable();
void updateTable();
void sendDV();
void requestDV();
void route( string filename );
void createDV();
Node* getMyNodes( char myLetter );
void printMyNodes( Node* myNodes );
NodeList* getArray( int a ){ return array + a; }
int getSize(){ return size; }
};