abstractproperty.cpp 1.36 KB
Newer Older
schultezub's avatar
schultezub committed
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
#include "abstractproperty.h"

namespace TUMVis {

    const std::string AbstractProperty::loggerCat_ = "TUMVis.core.datastructures.AbstractProperty";

    AbstractProperty::AbstractProperty(const std::string& name, const std::string& title, InvalidationLevel il /*= InvalidationLevel::INVALID_RESULT*/)
        : _name(name)
        , _title(title)
        , _invalidationLevel(il)
    {
    }

    AbstractProperty::~AbstractProperty() {
    }

    const std::string& AbstractProperty::getName() {
        return _name;
    }

    const std::string& AbstractProperty::getTitle() {
        return _title;
    }

    const InvalidationLevel& AbstractProperty::getInvalidationLevel() const {
        return _invalidationLevel;
    }

    void AbstractProperty::setInvalidationLevel(const InvalidationLevel& il) {
        _invalidationLevel = il;
    }
32
33
34
35
36
37
38
39
40
41
42
43
44
45

    void AbstractProperty::addSharedProperty(AbstractProperty* prop) {
        tgtAssert(prop != 0, "Shared property must not be 0!");
        _sharedProperties.insert(prop);
    }

    void AbstractProperty::removeSharedProperty(AbstractProperty* prop) {
        tgtAssert(prop != 0, "Shared property must not be 0!");
        _sharedProperties.erase(prop);
    }

    const std::set<AbstractProperty*>& AbstractProperty::getSharedProperties() const {
        return _sharedProperties;
    }
schultezub's avatar
schultezub committed
46
}