Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

abstractpipeline.cpp 2.14 KB
Newer Older
1
#include "abstractpipeline.h"
schultezub's avatar
schultezub committed
2

schultezub's avatar
schultezub committed
3
#include "tgt/exception.h"
schultezub's avatar
schultezub committed
4
#include "core/pipeline/abstractprocessor.h"
5
6
7
8

namespace TUMVis {
    const std::string AbstractPipeline::loggerCat_ = "TUMVis.core.datastructures.AbstractPipeline";

9
    AbstractPipeline::AbstractPipeline() 
10
        : HasPropertyCollection()
schultezub's avatar
   
schultezub committed
11
12
13
14
15
16
    {
    }

    AbstractPipeline::~AbstractPipeline() {
    }

17
18
    void AbstractPipeline::init() {
        // initialize all processors:
schultezub's avatar
schultezub committed
19
20
21
22
23
24
25
26
         for (std::vector<AbstractProcessor*>::iterator it = _processors.begin(); it != _processors.end(); ++it) {
             try {
                 (*it)->init();
             }
             catch (tgt::Exception& e) {
                 LERROR("Caught Exception during initialization of processor: " << e.what());
             }
         }
27
    }
schultezub's avatar
schultezub committed
28

29
30
31
32
33
34
35
36
37
38
39
40
    void AbstractPipeline::deinit() {
        // deinitialize all processors:
        for (std::vector<AbstractProcessor*>::iterator it = _processors.begin(); it != _processors.end(); ++it) {
            try {
                (*it)->deinit();
            }
            catch (tgt::Exception& e) {
                LERROR("Caught Exception during deinitialization of processor: " << e.what());
            }
        }
    }

schultezub's avatar
schultezub committed
41
42
43
44
45
46
    void AbstractPipeline::onPropertyChanged(const AbstractProperty* prop) {
        _invalidationLevel.setLevel(InvalidationLevel::INVALID_RESULT);
        s_PipelineInvalidated();
    }

    void AbstractPipeline::onProcessorInvalidated(const AbstractProcessor* processor) {
47
        _invalidationLevel.setLevel(InvalidationLevel::INVALID_RESULT);
48
        s_PipelineInvalidated();
schultezub's avatar
schultezub committed
49
50
51
52
53
54
    }

    const DataContainer& AbstractPipeline::getDataContainer() const {
        return _data;
    }

55
56
57
58
59
60
61
62
63
64
    void AbstractPipeline::executeProcessor(AbstractProcessor& processor) {
        processor.lockProperties();
        processor.process(_data);
        processor.unlockProperties();
    }

    InvalidationLevel& AbstractPipeline::getInvalidationLevel() {
        return _invalidationLevel;
    }

65
66
67
68
    const std::vector<AbstractProcessor*>& AbstractPipeline::getProcessors() const {
        return _processors;
    }

69
}