OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
OptionSettings.h
Go to the documentation of this file.
1#pragma once
2#include "Options.h"
3
4namespace ts
5{
7 {
8 public:
9 OptionSettings(option::Frequency frequency, option::Format format, option::Parameter parameter, ot::Variable referenceResistance);
11
12 bool operator==(const OptionSettings& other)const;
13
14 const option::Frequency getFrequency() const { return _frequency; }
15 void setFrequency(const option::Frequency& frequency) { _frequency = frequency; }
16
17 const option::Format getFormat() const { return _format; }
18 void setFormat(const option::Format& format) { _format = format; }
19
20 const option::Parameter getParameter() const { return _parameter; }
21 void setParameter(const option::Parameter& parameter) { _parameter = parameter; }
22
27 const ot::Variable getReferenceResistance() const { return _referenceResistance; }
31 void setReferenceResistance(const ot::Variable& value) { _referenceResistance = value; }
32 private:
33 option::Frequency _frequency;
34 option::Format _format;
35 option::Parameter _parameter;
36 ot::Variable _referenceResistance;
37 };
38}
bsoncxx::types::value value
Definition DocumentManager.h:16
Definition Variable.h:107
Definition OptionSettings.h:7
bool operator==(const OptionSettings &other) const
Definition OptionSettings.cpp:12
const option::Format getFormat() const
Definition OptionSettings.h:17
OptionSettings()
Definition OptionSettings.cpp:8
void setReferenceResistance(const ot::Variable &value)
Unit: Ohm.
Definition OptionSettings.h:31
void setFrequency(const option::Frequency &frequency)
Definition OptionSettings.h:15
const ot::Variable getReferenceResistance() const
Unit: Ohm.
Definition OptionSettings.h:27
const option::Frequency getFrequency() const
Definition OptionSettings.h:14
void setFormat(const option::Format &format)
Definition OptionSettings.h:18
const option::Parameter getParameter() const
Definition OptionSettings.h:20
void setParameter(const option::Parameter &parameter)
Definition OptionSettings.h:21
Frequency
Definition Options.h:10
Parameter
Definition Options.h:25
Format
Definition Options.h:18
Definition Options.h:6