Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7086a8ac31fee4a41e3069fa77816c20cd58c453 (plain) (blame)
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
42
43
44
45
46
47
48
/*******************************************************************************
 * Copyright (c) 2012 Draeger Medical GmbH (http://www.draeger.com).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * CONTRIBUTORS:
 * 		Peter Karlitschek (initial contribution)
 *
 *******************************************************************************/

#ifndef ABSTRACTMESSAGERECEIVER_H_
#define ABSTRACTMESSAGERECEIVER_H_

#include "common/messaging/Address.h"
#include "common/messaging/IMessageReceiver.h"
#include "common/messaging/RTObject.h"
#include <string>

namespace etRuntime {

class AbstractMessageReceiver: public RTObject, public virtual IMessageReceiver {

public:
	Address getAddress() const {
		return m_address;
	}
	virtual ~AbstractMessageReceiver() {};

protected:
	AbstractMessageReceiver(IRTObject* parent, Address address, std::string name)
	: IMessageReceiver(),
	  RTObject(parent, name),
	  m_address(address)
	{

	}

private:
	Address m_address;

	AbstractMessageReceiver();
};


}
#endif /* ABSTRACTMESSAGERECEIVER_H_ */

Back to the top