ClassFlowPostProcessing.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #include "ClassFlow.h"
  3. #include <string>
  4. class ClassFlowPostProcessing :
  5. public ClassFlow
  6. {
  7. protected:
  8. bool PreValueUse;
  9. int PreValueAgeStartup;
  10. bool AllowNegativeRates;
  11. float MaxRateValue;
  12. bool useMaxRateValue;
  13. bool ErrorMessage;
  14. bool PreValueOkay;
  15. bool checkDigitIncreaseConsistency;
  16. int DecimalShift;
  17. string FilePreValue;
  18. float PreValue; // letzter Wert, der gut ausgelesen wurde
  19. float Value; // letzer ausgelesener Wert, inkl. Korrekturen
  20. string ReturnRawValue; // Rohwert (mit N & führenden 0)
  21. string ReturnValue; // korrigierter Rückgabewert, ggf. mit Fehlermeldung
  22. string ReturnValueNoError; // korrigierter Rückgabewert ohne Fehlermeldung
  23. bool LoadPreValue(void);
  24. string ShiftDecimal(string in, int _decShift);
  25. string ErsetzteN(string, int lastvalueanalog);
  26. public:
  27. ClassFlowPostProcessing();
  28. ClassFlowPostProcessing(std::vector<ClassFlow*>* lfc);
  29. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  30. bool doFlow(string time);
  31. string getReadout();
  32. string getReadoutParam(bool _rawValue, bool _noerror);
  33. void SavePreValue(float value, string time = "");
  34. string GetPreValue();
  35. string name(){return "ClassFlowPostProcessing";};
  36. };