ClassFlowPostProcessing.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef __FLOWPOSTPROCESSING__
  2. #define __FLOWPOSTPROCESSING__
  3. #include "ClassFlow.h"
  4. #include "ClassFlowMakeImage.h"
  5. #include "ClassFlowCNNGeneral.h"
  6. #include "ClassFlowDefineTypes.h"
  7. #include <string>
  8. class ClassFlowPostProcessing :
  9. public ClassFlow
  10. {
  11. protected:
  12. std::vector<NumberPost*> NUMBERS;
  13. bool UpdatePreValueINI;
  14. int PreValueAgeStartup;
  15. bool ErrorMessage;
  16. bool IgnoreLeadingNaN; // SPEZIALFALL für User Gustl
  17. ClassFlowCNNGeneral* flowAnalog;
  18. ClassFlowCNNGeneral* flowDigit;
  19. string FilePreValue;
  20. ClassFlowMakeImage *flowMakeImage;
  21. bool LoadPreValue(void);
  22. string ShiftDecimal(string in, int _decShift);
  23. string ErsetzteN(string, float _prevalue);
  24. float checkDigitConsistency(float input, int _decilamshift, bool _isanalog, float _preValue);
  25. string RundeOutput(float _in, int _anzNachkomma);
  26. void InitNUMBERS();
  27. void handleDecimalSeparator(string _decsep, string _value);
  28. void handleMaxRateValue(string _decsep, string _value);
  29. void handleDecimalExtendedResolution(string _decsep, string _value);
  30. void handleMaxRateType(string _decsep, string _value);
  31. public:
  32. bool PreValueUse;
  33. ClassFlowPostProcessing(std::vector<ClassFlow*>* lfc, ClassFlowCNNGeneral *_analog, ClassFlowCNNGeneral *_digit);
  34. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  35. bool doFlow(string time);
  36. string getReadout(int _number);
  37. string getReadoutParam(bool _rawValue, bool _noerror, int _number = 0);
  38. string getReadoutError(int _number = 0);
  39. string getReadoutRate(int _number = 0);
  40. string getReadoutTimeStamp(int _number = 0);
  41. void SavePreValue();
  42. string GetPreValue(std::string _number = "");
  43. void SetPreValue(float zw, string _numbers, bool _extern = false);
  44. void UpdateNachkommaDecimalShift();
  45. std::vector<NumberPost*>* GetNumbers(){return &NUMBERS;};
  46. string name(){return "ClassFlowPostProcessing";};
  47. };
  48. #endif