Loading...
Searching...
No Matches
alignmentmethod.h
Go to the documentation of this file.
/**
* \file pappsomspp/masschroq/alignmentmethod.h
* \date 25/10/2024
* \author Olivier Langella
* \brief store parameters related to msrun alignment
*/
/*******************************************************************************
* Copyright (c) 2024 Olivier Langella
*<Olivier.Langella@universite-paris-saclay.fr>.
*
* This file is part of MassChroQ.
*
* MassChroQ 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.
*
* MassChroQ 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 MassChroQ. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once
#include <memory>
#include <QString>
#include "pappsomspp/core/processing/project/projectparameters.h"
#include <QJsonObject>
#include "pappsomspp/export-import-config.h"
namespace pappso::masschroq
{
class PMSPP_LIB_DECL AlignmentMethod;
typedef std::shared_ptr<AlignmentMethod> AlignmentMethodSp;
/**
* @todo write docs
*/
class AlignmentMethod
{
public:
/**
* Default constructor
*/
AlignmentMethod(const QString &id);
AlignmentMethod(const AlignmentMethod &other);
/**
* Destructor
*/
~AlignmentMethod();
const QString &getId() const;
void setMs2TendencyWindow(std::uint8_t ms2_tendency_window);
void setMs2SmoothingWindow(std::uint8_t ms2_smoothing_window);
void setMs1SmoothingWindow(std::uint8_t ms1_smoothing_window);
void setJsonObject(const QJsonObject &json_object);
QJsonObject getJsonObject() const;
std::uint8_t getMs2TendencyWindow() const;
std::uint8_t getMs2SmoothingWindow() const;
std::uint8_t getMs1SmoothingWindow() const;
pappso::ProjectParameters getProjectParameters() const;
private:
const QString m_id;
quint8 m_ms2TendencyWindow;
quint8 m_ms2SmoothingWindow;
quint8 m_ms1SmoothingWindow;
};
} // namespace pappso::masschroq
pappso::ProjectParameters
Definition projectparameters.h:66
pappso::masschroq::AlignmentMethod
Definition alignmentmethod.h:48
pappso::masschroq::AlignmentMethod::getProjectParameters
pappso::ProjectParameters getProjectParameters() const
Definition alignmentmethod.cpp:95
pappso::masschroq::AlignmentMethod::AlignmentMethod
AlignmentMethod(const QString &id)
Definition alignmentmethod.cpp:31
pappso::masschroq::AlignmentMethod::m_ms2TendencyWindow
quint8 m_ms2TendencyWindow
Definition alignmentmethod.h:87
pappso::masschroq::AlignmentMethod::m_ms1SmoothingWindow
quint8 m_ms1SmoothingWindow
Definition alignmentmethod.h:89
pappso::masschroq::AlignmentMethod::setJsonObject
void setJsonObject(const QJsonObject &json_object)
Definition alignmentmethod.cpp:127
pappso::masschroq::AlignmentMethod::m_id
const QString m_id
Definition alignmentmethod.h:85
pappso::masschroq::AlignmentMethod::getId
const QString & getId() const
Definition alignmentmethod.cpp:52
pappso::masschroq::AlignmentMethod::getJsonObject
QJsonObject getJsonObject() const
Definition alignmentmethod.cpp:135
pappso::masschroq::AlignmentMethod::~AlignmentMethod
~AlignmentMethod()
Definition alignmentmethod.cpp:47
pappso::masschroq::AlignmentMethod::m_ms2SmoothingWindow
quint8 m_ms2SmoothingWindow
Definition alignmentmethod.h:88
pappso::masschroq::AlignmentMethod::setMs1SmoothingWindow
void setMs1SmoothingWindow(std::uint8_t ms1_smoothing_window)
Definition alignmentmethod.cpp:58
pappso::masschroq::AlignmentMethod::setMs2TendencyWindow
void setMs2TendencyWindow(std::uint8_t ms2_tendency_window)
Definition alignmentmethod.cpp:70
pappso::masschroq::AlignmentMethod::getMs2SmoothingWindow
std::uint8_t getMs2SmoothingWindow() const
Definition alignmentmethod.cpp:83
pappso::masschroq::AlignmentMethod::getMs1SmoothingWindow
std::uint8_t getMs1SmoothingWindow() const
Definition alignmentmethod.cpp:77
pappso::masschroq::AlignmentMethod::getMs2TendencyWindow
std::uint8_t getMs2TendencyWindow() const
Definition alignmentmethod.cpp:89
pappso::masschroq::AlignmentMethod::setMs2SmoothingWindow
void setMs2SmoothingWindow(std::uint8_t ms2_smoothing_window)
Definition alignmentmethod.cpp:64
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition export-import-config.h:14
pappso::masschroq
Definition alignmentmethod.h:38
pappso::masschroq::AlignmentMethodSp
std::shared_ptr< AlignmentMethod > AlignmentMethodSp
Definition alignmentmethod.h:42
pappso::masschroq::AlignmentMethod
class PMSPP_LIB_DECL AlignmentMethod
Definition alignmentmethod.h:40
projectparameters.h