]> Shamusworld >> Repos - architektonas/blob - src/connection.cpp
Whitespace changes. :-P
[architektonas] / src / connection.cpp
1 //
2 // connection.cpp: Object connection support
3 //
4 // Part of the Architektonas Project
5 // (C) 2013 Underground Software
6 // See the README and GPLv3 files for licensing and warranty information
7 //
8 // JLH = James Hammons <jlhamm@acm.org>
9 //
10 // Who  When        What
11 // ---  ----------  ------------------------------------------------------------
12 // JLH  03/14/2013  Created this file
13 //
14
15 #include "connection.h"
16
17 Connection::Connection(Object * o/*= NULL*/, double param/*= 0*/)
18 {
19         object = o;
20         t = param;
21 }
22
23 Connection::~Connection()
24 {
25 }
26
27 // Check for equality
28 bool Connection::operator==(Connection const c)
29 {
30         return (object == c.object) && (t == c.t);
31 }
32
33 // Check for inequality
34 bool Connection::operator!=(Connection const c)
35 {
36         return (object != c.object) || (t != c.t);
37 }