summaryrefslogtreecommitdiffstats
path: root/Master/Real-Time Systems/RTS_P6/A1/src/CanMessage.cpp
blob: c6bad9908bf22416b2f5084c0344d3441b3c7a97 (plain)
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
/*
 * CanMessage.cpp
 *
 *  Created on: 18.01.2011
 *      Author: istsveise
 */

#include "CanMessage.h"

CanMessage::CanMessage() {
	// TODO Auto-generated constructor stub

}

CanMessage::~CanMessage() {
	// TODO Auto-generated destructor stub
}
CanMessage::CanMessage(int pri, int per, int jit, int byteCnt, string& descr)
:prio(pri),period(per),jitter(jit),byteCount(byteCnt),desc(descr)
{

}
bool CanMessage::operator =(const CanMessage& rhs)
{
	this->prio = rhs.prio;
	this->period = rhs.period;
	this->jitter = rhs.jitter;
	this->byteCount = rhs.byteCount;
	this->desc = rhs.desc;
	return *this;
}

CanMessage& CanMessage::operator ==(const CanMessage& rhs)
{
	return (this->prio == rhs.prio) && (this->period == rhs.period) && (this->jitter == rhs.jitter) && (this->byteCount == rhs.byteCount) && (this->desc == rhs.desc);
}