Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 4fd02181c1c669d67df5c9bce47ce7ccdbb91c8f (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
49
50
/*******************************************************************************
 * 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 IRTOBJECT_H_
#define IRTOBJECT_H_

#include <string>
#include <vector>

namespace etRuntime {

class IRTObject {

public:
	virtual ~IRTObject() {
	}

	static const char PATH_DELIM = '/';
	static const char PATHNAME_DELIM = '_';
	static const std::string NO_NAME;

	virtual const std::string& getName() const = 0;
	virtual const std::string& getInstancePath() const = 0;
	virtual const std::string& getInstancePathName() const = 0;

	virtual std::vector<IRTObject*>& getChildren() = 0;

	virtual IRTObject* getParent() const = 0;

	virtual IRTObject* getRoot() const = 0;

	virtual IRTObject* getChild(const std::string& name) const = 0;

	virtual IRTObject* getObject(const std::string& path) const = 0;

	virtual int getThreadForPath(const std::string& path) const = 0;
};

}

#endif /* IRTOBJECT_H_ */

Back to the top