Files
Jungfraujoch/common/InstrumentMetadata.cpp
2024-10-05 13:14:49 +02:00

45 lines
1018 B
C++

// Copyright (2019-2024) Paul Scherrer Institute
#include "InstrumentMetadata.h"
#include "JFJochException.h"
InstrumentMetadata::InstrumentMetadata() {
pulsed_source = false;
}
InstrumentMetadata &InstrumentMetadata::SourceName(const std::string &input) {
source_name = input;
return *this;
}
InstrumentMetadata &InstrumentMetadata::SourceType(const std::string &input) {
source_type = input;
return *this;
}
InstrumentMetadata &InstrumentMetadata::InstrumentName(const std::string &input) {
instrument_name = input;
return *this;
}
InstrumentMetadata &InstrumentMetadata::PulsedSource(bool input) {
pulsed_source = input;
return *this;
}
std::string InstrumentMetadata::GetSourceName() const {
return source_name;
}
std::string InstrumentMetadata::GetSourceType() const {
return source_type;
}
std::string InstrumentMetadata::GetInstrumentName() const {
return instrument_name;
}
bool InstrumentMetadata::IsPulsedSource() const {
return pulsed_source;
}