-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDgAddressBase.h
41 lines (26 loc) · 991 Bytes
/
DgAddressBase.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
37
38
39
40
41
////////////////////////////////////////////////////////////////////////////////
//
// DgAddressBase.h: DgAddressBase class definitions
//
// Version 6.1 - Kevin Sahr, 5/23/13
//
////////////////////////////////////////////////////////////////////////////////
#ifndef DGADDRESSBASE_H
#define DGADDRESSBASE_H
#include <iostream>
using namespace std;
class DgDistanceBase;
////////////////////////////////////////////////////////////////////////////////
class DgAddressBase {
public:
virtual ~DgAddressBase (void);
protected:
DgAddressBase (void) {}
virtual ostream& writeTo (ostream& stream) const = 0;
friend ostream& operator<< (ostream& stream, const DgAddressBase& add);
};
inline ostream& operator<< (ostream& stream, const DgAddressBase& add)
{ return add.writeTo(stream); }
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
#endif