7class __declspec(dllexport)ValueFormatSetter
10 void setValueFormatRealOnly(QuantityDescription& quantityDescription,std::string _unit)
12 quantityDescription.clearValueDescriptions();
14 POST(quantityDescription.getMetadataQuantity().valueDescriptions.size() == 1);
17 void setValueFormatImaginaryOnly(QuantityDescription& quantityDescription, std::string _unit)
19 quantityDescription.clearValueDescriptions();
21 POST(quantityDescription.getMetadataQuantity().valueDescriptions.size() == 1);
24 void setValueFormatRealImaginary(QuantityDescription& quantityDescription, std::string _unit)
26 quantityDescription.clearValueDescriptions();
30 POST(quantityDescription.getMetadataQuantity().valueDescriptions.size() == 2);
33 void setValueFormatDecibelPhase(QuantityDescription& quantityDescription)
35 quantityDescription.clearValueDescriptions();
39 POST(quantityDescription.getMetadataQuantity().valueDescriptions.size() == 2);
42 void setValueFormatMagnitudePhase(QuantityDescription& quantityDescription)
44 quantityDescription.clearValueDescriptions();
48 POST(quantityDescription.getMetadataQuantity().valueDescriptions.size() == 2);
53 bool invariant() {
return true; }
54 const std::string m_realValueName =
"Real";
55 const std::string m_imagValueName =
"Imaginary";
56 const std::string m_phaseValueName =
"Phase";
57 const std::string m_magnitudeValueName =
"Magnitude";
58 const std::string m_decibelValueName =
"Decibel";
60 const std::string m_decibleUnitName =
"dB";
61 const std::string m_phaseUnitName =
"Deg";