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 123 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 134 of file integrationscopebase.h.

136 : integrationScopeSPtr(integration_scope_sp), dataKind(data_kind)
137 {
138 }
IntegrationScopeBaseSPtr integrationScopeSPtr

References dataKind, and integrationScopeSPtr.

◆ IntegrationScopeSpec() [3/3]

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

Definition at line 140 of file integrationscopebase.h.

141 : integrationScopeSPtr(other.integrationScopeSPtr), dataKind(other.dataKind)
142 {
143 }

References IntegrationScopeSpec(), dataKind, and integrationScopeSPtr.

Member Function Documentation

◆ operator=()

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

Definition at line 146 of file integrationscopebase.h.

147 {
148 if(this == &other)
149 return *this;
150
151 integrationScopeSPtr = other.integrationScopeSPtr;
152 dataKind = other.dataKind;
153
154 return *this;
155 }

References IntegrationScopeSpec(), dataKind, and integrationScopeSPtr.

◆ toString()

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

Definition at line 158 of file integrationscopebase.h.

159 {
160 QString text = "Integration scope spec:";
161 text += integrationScopeSPtr->toString();
162
163 text += " - data kind: ";
164
166 text += "dt.";
167 else if(dataKind == Enums::DataKind::mz)
168 text += "m/z.";
169 else if(dataKind == Enums::DataKind::rt)
170 text += "rt.";
171 else
172 text += "unset.";
173
174 return text;
175 }
@ 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: