Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_linker_site.hpp
1/*
2##############################################################################
3# file: ms_linker_site.hpp #
4# 'msparser' toolkit #
5# Linker site used in ms_peptide #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2018 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11# $Author: robertog@matrixscience.com $ #
12# $Date: 2023-04-14 15:33:41 +0100 $ #
13# $Revision: #
14# $NoKeywords:: $ #
15##############################################################################
16*/
17
18#ifndef MS_LINKERSITE_HPP
19#define MS_LINKERSITE_HPP
20
21// Includes from the standard template library
22#include <string>
23
24namespace matrix_science {
25 class ms_peptide;
26
33
41 class MS_MASCOTRESFILE_API ms_linker_site
42 {
43 public:
46
49 ms_peptide::PSM linkTo,
50 int siteFrom,
51 int siteTo,
52 int varModIdxFrom,
53 int varModIdxTo,
54 double linkerMass);
55
58
61
62#ifndef SWIG
64 ms_linker_site& operator=(const ms_linker_site& right);
65
66 bool operator<(const ms_linker_site &right) const;
67#endif
68
70 void copyFrom(const ms_linker_site *right);
71
73 int getSiteFrom() const;
74
76 int getSiteTo() const;
77
79 int getVarModIdxFrom() const;
80
82 int getVarModIdxTo() const;
83
85 ms_peptide::PSM getLinkFrom() const;
86
88 ms_peptide::PSM getLinkTo() const;
89
91 double getLinkerMass() const;
92
93 std::string stringify() const;
94
95 private:
96 ms_peptide::PSM linkFrom_, linkTo_;
97 int siteFrom_, siteTo_;
98 int varModIdxFrom_, varModIdxTo_;
99 double linkerMr_;
100 };
101
102#ifndef SWIG
103 std::ostream& operator<<(std::ostream& out, const ms_linker_site& s);
104#endif
105 // end of resfile_group
107} // matrix_science namespace
108
109#endif // MS_LINKERSITE_HPP
110
111/*------------------------------- End of File -------------------------------*/
Position of an intact link between alpha and beta peptide or a looplink.
Definition: ms_linker_site.hpp:42
PSM
Type of data to return from accessor methods.
Definition: ms_peptide.hpp:98