libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::IntegrationScopeSpec Struct Reference

#include <integrationscopebase.h>

Public Member Functions

 IntegrationScopeSpec ()
 IntegrationScopeSpec (IntegrationScopeBaseSPtr integration_scope_sp, Enums::DataKind data_kind)
 IntegrationScopeSpec (const IntegrationScopeSpec &other)
IntegrationScopeSpecoperator= (const IntegrationScopeSpec &other)
QString toString () const

Public Attributes

IntegrationScopeBaseSPtr integrationScopeSPtr
Enums::DataKind dataKind = Enums::DataKind::unset

Detailed Description

Definition at line 120 of file integrationscopebase.h.

Constructor & Destructor Documentation

◆ IntegrationScopeSpec() [1/3]

pappso::IntegrationScopeSpec::IntegrationScopeSpec ( )

Referenced by IntegrationScopeSpec(), and operator=().

◆ IntegrationScopeSpec() [2/3]

pappso::IntegrationScopeSpec::IntegrationScopeSpec ( IntegrationScopeBaseSPtr integration_scope_sp,
Enums::DataKind data_kind )
inline

Definition at line 131 of file integrationscopebase.h.

133 : integrationScopeSPtr(integration_scope_sp), dataKind(data_kind)
134 {
135 }
IntegrationScopeBaseSPtr integrationScopeSPtr

References dataKind, and integrationScopeSPtr.

◆ IntegrationScopeSpec() [3/3]

pappso::IntegrationScopeSpec::IntegrationScopeSpec ( const IntegrationScopeSpec & other)
inline

Definition at line 137 of file integrationscopebase.h.

138 : integrationScopeSPtr(other.integrationScopeSPtr), dataKind(other.dataKind)
139 {
140 }

References IntegrationScopeSpec(), dataKind, and integrationScopeSPtr.

Member Function Documentation

◆ operator=()

IntegrationScopeSpec & pappso::IntegrationScopeSpec::operator= ( const IntegrationScopeSpec & other)
inline

Definition at line 143 of file integrationscopebase.h.

144 {
145 if(this == &other)
146 return *this;
147
148 integrationScopeSPtr = other.integrationScopeSPtr;
149 dataKind = other.dataKind;
150
151 return *this;
152 }

References IntegrationScopeSpec(), dataKind, and integrationScopeSPtr.

◆ toString()

QString pappso::IntegrationScopeSpec::toString ( ) const
inline

Definition at line 155 of file integrationscopebase.h.

156 {
157 QString text = "Integration scope spec:";
158 text += integrationScopeSPtr->toString();
159
160 text += " - data kind: ";
161
163 text += "dt.";
164 else if(dataKind == Enums::DataKind::mz)
165 text += "m/z.";
166 else if(dataKind == Enums::DataKind::rt)
167 text += "rt.";
168 else
169 text += "unset.";
170
171 return text;
172 }
@ dt
Drift time.
Definition types.h:252
@ rt
Retention time.
Definition types.h:251

References dataKind, pappso::Enums::dt, integrationScopeSPtr, pappso::Enums::mz, and pappso::Enums::rt.

Member Data Documentation

◆ dataKind

Enums::DataKind pappso::IntegrationScopeSpec::dataKind = Enums::DataKind::unset

◆ integrationScopeSPtr

IntegrationScopeBaseSPtr pappso::IntegrationScopeSpec::integrationScopeSPtr

The documentation for this struct was generated from the following file: