Skip to content
Snippets Groups Projects
D_textUnifier.h 771 B
#ifndef D_TEXTUNIFIER_H
#define D_TEXTUNIFIER_H

#include <d_fct.h>

/** A compatibility class that adds the constructor which would create a history,
 *  and the set_and_archive function to the D_text interface. As this does not
 *  have history it just calls the non-history equivalent.
 *  This class was introduces to avoid template specialisations in DoocsProcessScalar.
 *  (Local specialisations of functions don't work because one would have to
 */
struct D_textUnifier : public D_text {
  using D_text::D_text;
  D_textUnifier(EqFct* eqFct, std::string doocsPropertyName);

  void set_and_archive(
      const std::string& str, ArchiveStatus status, doocs::Timestamp timestamp, doocs::EventId eventId);
  D_hist* get_histPointer();
};

#endif // D_TEXTUNIFIER_H