// 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; }