31 #ifndef DEVICEPARAMETERCAST_H_ 32 #define DEVICEPARAMETERCAST_H_ 34 #include "../Variable.h" 48 namespace DeviceDescription
54 namespace ParameterCast
62 virtual ~
ICast() =
default;
111 void toPacket(
PVariable& value)
override;
122 enum Enum { none = 0, division = 1, multiplication = 2 };
130 void toPacket(
PVariable& value)
override;
146 void toPacket(
PVariable& value)
override;
149 bool directionToPacket =
true;
150 bool addOffset =
false;
162 void toPacket(
PVariable& value)
override;
165 bool directionToPacket =
true;
166 bool addOffset =
false;
175 enum Enum { none = 0, fromDevice = 1, toDevice = 2,
both = 3 };
183 void toPacket(
PVariable& value)
override;
199 void toPacket(
PVariable& value)
override;
202 int32_t trueValue = 0;
203 int32_t falseValue = 0;
205 int32_t threshold = 1;
216 void toPacket(
PVariable& value)
override;
219 double trueValue = 0;
220 double falseValue = 0;
222 double threshold = 1;
233 void toPacket(
PVariable& value)
override;
249 void toPacket(
PVariable& value)
override;
253 double valueSize = 0;
264 void toPacket(
PVariable& value)
override;
267 int32_t mantissaStart = 5;
268 int32_t mantissaSize = 11;
269 int32_t exponentStart = 0;
270 int32_t exponentSize = 5;
281 void toPacket(
PVariable& value)
override;
292 void toPacket(
PVariable& value)
override;
306 void toPacket(
PVariable& value)
override;
317 void toPacket(
PVariable& value)
override;
332 void toPacket(
PVariable& value)
override;
344 void toPacket(
PVariable& value)
override;
347 std::shared_ptr<BaseLib::Rpc::RpcDecoder> _binaryDecoder;
348 std::shared_ptr<BaseLib::Rpc::RpcEncoder> _binaryEncoder;
356 ~
Toggle()
override =
default;
359 void toPacket(
PVariable& value)
override;
376 void toPacket(
PVariable& value)
override;
384 ~
Cfm()
override =
default;
388 void toPacket(
PVariable& value)
override;
399 void toPacket(
PVariable& value)
override;
414 void toPacket(
PVariable& value)
override;
425 void toPacket(
PVariable& value)
override;
433 ~
Invert()
override =
default;
436 void toPacket(
PVariable& value)
override;
444 ~
Round()
override =
default;
447 void toPacket(
PVariable& value)
override;
450 bool roundToPoint5 =
false;
451 int32_t decimalPlaces = 1;
462 void toPacket(
PVariable& value)
override;
475 typedef std::shared_ptr<Cfm>
PCfm;
std::map< int32_t, int32_t > valueMapToDevice
Definition: ParameterCast.h:321
Definition: ParameterCast.h:138
Definition: ParameterCast.h:284
std::shared_ptr< DecimalIntegerInverseScale > PDecimalIntegerInverseScale
Definition: ParameterCast.h:478
Definition: ParameterCast.h:273
std::shared_ptr< BlindTest > PBlindTest
Definition: ParameterCast.h:470
Definition: ParameterCast.h:208
bool needsBinaryPacketData() override
Definition: ParameterCast.h:342
std::shared_ptr< IntegerIntegerScale > PIntegerIntegerScale
Definition: ParameterCast.h:481
Definition: ParameterCast.h:117
This is the base library main class.
Definition: BaseLib.h:95
std::shared_ptr< TimeStringSeconds > PTimeStringSeconds
Definition: ParameterCast.h:493
Definition: ParameterCast.h:406
Definition: RpcDecoder.h:55
Definition: ParameterCast.h:191
const std::weak_ptr< Parameter > _parameter
Definition: ParameterCast.h:69
Definition: ParameterCast.h:88
Definition: ParameterCast.h:225
std::shared_ptr< IntegerOffset > PIntegerOffset
Definition: ParameterCast.h:482
std::shared_ptr< Round > PRound
Definition: ParameterCast.h:495
std::shared_ptr< StringJsonArrayDecimal > PStringJsonArrayDecimal
Definition: ParameterCast.h:488
Definition: ParameterCast.h:335
std::vector< double > factors
Definition: ParameterCast.h:252
std::shared_ptr< IntegerIntegerMap > PIntegerIntegerMap
Definition: ParameterCast.h:480
std::shared_ptr< DecimalStringScale > PDecimalStringScale
Definition: ParameterCast.h:479
Definition: ParameterCast.h:241
Definition: BaseLib.cpp:34
bool needsBinaryPacketData() override
Definition: ParameterCast.h:386
Definition: ParameterCast.h:391
std::shared_ptr< Toggle > PToggle
Definition: ParameterCast.h:490
std::shared_ptr< DecimalOffset > PDecimalOffset
Definition: ParameterCast.h:483
virtual bool needsBinaryPacketData()
Definition: ParameterCast.h:64
std::shared_ptr< BooleanString > PBooleanString
Definition: ParameterCast.h:473
Definition: ParameterCast.h:57
std::shared_ptr< BooleanDecimal > PBooleanDecimal
Definition: ParameterCast.h:472
Definition: ParameterCast.h:103
std::shared_ptr< RpcBinary > PRpcBinary
Definition: ParameterCast.h:487
std::string trueValue
Definition: ParameterCast.h:236
std::string parameter
Definition: ParameterCast.h:362
Definition: ParameterCast.h:298
std::shared_ptr< HexStringByteArray > PHexStringByteArray
Definition: ParameterCast.h:492
Definition: ParameterCast.h:154
std::map< int32_t, int32_t > valueMapFromDevice
Definition: ParameterCast.h:320
Definition: ParameterCast.h:256
Definition: ParameterCast.h:454
PVariable value
Definition: UiElements.h:217
bool needsBinaryPacketData() override
Definition: ParameterCast.h:374
std::shared_ptr< Variable > PVariable
Definition: PhysicalInterfaceSettings.h:41
std::shared_ptr< DecimalConfigTime > PDecimalConfigTime
Definition: ParameterCast.h:476
Enum
Definition: ParameterCast.h:175
std::shared_ptr< ICast > PICast
Definition: ParameterCast.h:468
Definition: ParameterCast.h:379
Definition: RpcEncoder.h:48
Definition: ParameterCast.h:417
Definition: ParameterCast.h:72
std::shared_ptr< StringReplace > PStringReplace
Definition: ParameterCast.h:491
Definition: ParameterCast.h:439
Definition: ParameterCast.h:367
Definition: ParameterCast.h:324
Definition: ParameterCast.h:351
std::shared_ptr< OptionString > POptionString
Definition: ParameterCast.h:485
std::string type
Definition: ParameterCast.h:465
std::shared_ptr< BooleanInteger > PBooleanInteger
Definition: ParameterCast.h:471
std::string replace
Definition: ParameterCast.h:403
Definition: ParameterCast.h:170
std::map< int32_t, int32_t > integerValueMapToDevice
Definition: ParameterCast.h:188
Definition: ParameterCast.h:120
std::string falseValue
Definition: ParameterCast.h:237
Enum
Definition: ParameterCast.h:122
Class representing a node of XML document.
Definition: rapidxml.h:539
std::map< int32_t, int32_t > integerValueMapFromDevice
Definition: ParameterCast.h:187
Definition: BinaryPayload.h:38
std::shared_ptr< Cfm > PCfm
Definition: ParameterCast.h:475
std::shared_ptr< StringUnsignedInteger > PStringUnsignedInteger
Definition: ParameterCast.h:489
std::string search
Definition: ParameterCast.h:402
std::vector< PICast > Casts
Definition: ParameterCast.h:469
std::shared_ptr< Parameter > PParameter
Definition: Parameter.h:55
std::shared_ptr< Invert > PInvert
Definition: ParameterCast.h:494
Definition: ParameterCast.h:428
std::shared_ptr< OptionInteger > POptionInteger
Definition: ParameterCast.h:486
Definition: ParameterCast.h:309
std::shared_ptr< CcrtdnParty > PCcrtdnParty
Definition: ParameterCast.h:474
std::shared_ptr< IntegerTinyFloat > PIntegerTinyFloat
Definition: ParameterCast.h:484
Definition: ParameterCast.h:173
std::shared_ptr< Generic > PGeneric
Definition: ParameterCast.h:496
std::shared_ptr< DecimalIntegerScale > PDecimalIntegerScale
Definition: ParameterCast.h:477