ClassFlowPostProcessing.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. string FilePreValue;
  17. float PreValue; // letzter Wert, der gut ausgelesen wurde
  18. float Value; // letzer ausgelesener Wert, inkl. Korrekturen
  19. string ReturnRawValue; // Rohwert (mit N & führenden 0)
  20. string ReturnValue; // korrigierter Rückgabewert, ggf. mit Fehlermeldung
  21. string ReturnValueNoError; // korrigierter Rückgabewert ohne Fehlermeldung
  22. bool LoadPreValue(void);
  23. string ErsetzteN(string, int lastvalueanalog);
  24. public:
  25. ClassFlowPostProcessing();
  26. ClassFlowPostProcessing(std::vector<ClassFlow*>* lfc);
  27. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  28. bool doFlow(string time);
  29. string getReadout();
  30. string getReadoutParam(bool _rawValue, bool _noerror);
  31. void SavePreValue(float value, string time = "");
  32. string GetPreValue();
  33. string name(){return "ClassFlowPostProcessing";};
  34. };