/**
 * \file core/spoms/complementarypeak.h
 * \date 11/02/2026
 * \author Aurélien Berthier, BENOIST Emile, TESSIER Dominique
 * \brief handle processed spectrum
 */


/*
 * PeptidOMS, Spectra to protein alignment tool
 * Copyright (C) 2026  Olivier Langella
 * <olivier.langella@cnrs.fr>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#pragma once
#include <QString>

namespace pappso
{
namespace spoms
{

class ComplementaryPeak;

bool operator<(ComplementaryPeak const &lhs, ComplementaryPeak const &rhs);


class ComplementaryPeak
{
  public:
  friend bool operator<(ComplementaryPeak const &lhs,
                        ComplementaryPeak const &rhs);

  public:
  ComplementaryPeak();
  ComplementaryPeak(double mass, bool is_double, int native_peak);


  ComplementaryPeak(const ComplementaryPeak &other);

  ComplementaryPeak &operator=(const ComplementaryPeak &other);

  virtual ~ComplementaryPeak();


  void overwrite(double mass, bool is_double, int native_peak);


  double get_mass() const;

  bool isDouble() const;

  int getNativePeak() const;

  QString toString() const;


  private:
  // static final DecimalFormat Decimal_Format = new DecimalFormat("0.00");

  double mass;
  bool is_double;
  int native_peak;
};


} // namespace spoms
} // namespace pappso
