#ifndef FIX41_SEQUENCERESET_H
#define FIX41_SEQUENCERESET_H

#include "Message.h"

namespace FIX41
{

  class SequenceReset : public Message
  {
  public:
    SequenceReset() : Message(MsgType()) {}
    SequenceReset(const FIX::Message& m) : Message(m) {}
    SequenceReset(const Message& m) : Message(m) {}
    SequenceReset(const SequenceReset&) = default;
    SequenceReset(SequenceReset&&) = default;
    SequenceReset& operator=(const SequenceReset&) = default;
    SequenceReset& operator=(SequenceReset&&) = default;
    static FIX::MsgType MsgType() { return FIX::MsgType("4"); }

    SequenceReset(
      const FIX::NewSeqNo& aNewSeqNo )
    : Message(MsgType())
    {
      set(aNewSeqNo);
    }

    FIELD_SET(*this, FIX::GapFillFlag);
    FIELD_SET(*this, FIX::NewSeqNo);
  };

}

#endif
