41 #ifndef OBJECTS_OMSSA_MSSPECTRUM_BASE_HPP
42 #define OBJECTS_OMSSA_MSSPECTRUM_BASE_HPP
54 #ifndef BEGIN_objects_SCOPE
55 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
56 # define END_objects_SCOPE END_SCOPE(objects)
95 typedef vector< int >
TMz;
98 typedef list< string >
TIds;
126 bool IsSetNumber(
void)
const;
133 bool CanGetNumber(
void)
const;
136 void ResetNumber(
void);
164 bool IsSetCharge(
void)
const;
171 bool CanGetCharge(
void)
const;
174 void ResetCharge(
void);
196 bool IsSetPrecursormz(
void)
const;
203 bool CanGetPrecursormz(
void)
const;
206 void ResetPrecursormz(
void);
234 bool IsSetMz(
void)
const;
241 bool CanGetMz(
void)
const;
250 const TMz& GetMz(
void)
const;
266 bool IsSetAbundance(
void)
const;
273 bool CanGetAbundance(
void)
const;
276 void ResetAbundance(
void);
298 bool IsSetIscale(
void)
const;
305 bool CanGetIscale(
void)
const;
308 void ResetIscale(
void);
336 bool IsSetIds(
void)
const;
343 bool CanGetIds(
void)
const;
368 bool IsSetNamevalue(
void)
const;
375 bool CanGetNamevalue(
void)
const;
378 void ResetNamevalue(
void);
393 virtual void Reset(
void);
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_OMSSA_EXPORT
list< CRef< CNameValue > > m_Namevalue
const TMz & GetMz(void) const
Get the Mz member data.
TPrecursormz & SetPrecursormz(void)
Assign a value to Precursormz data member.
TNumber & SetNumber(void)
Assign a value to Number data member.
bool CanGetCharge(void) const
Check if it is safe to call GetCharge method.
bool IsSetAbundance(void) const
scaled product abundance Check if a value has been assigned to Abundance data member.
TAbundance & SetAbundance(void)
Assign a value to Abundance data member.
bool IsSetCharge(void) const
may be more than one if unknown Check if a value has been assigned to Charge data member.
bool IsSetPrecursormz(void) const
scaled precursor m/z, scale is in MSSearchSettings Check if a value has been assigned to Precursormz ...
Tparent::CMemberIndex< E_memberIndex, 9 > TmemberIndex
const TAbundance & GetAbundance(void) const
Get the Abundance member data.
bool CanGetPrecursormz(void) const
Check if it is safe to call GetPrecursormz method.
TIds & SetIds(void)
Assign a value to Ids data member.
CMSSpectrum_Base(const CMSSpectrum_Base &)
void ResetNumber(void)
Reset Number data member.
bool CanGetIds(void) const
Check if it is safe to call GetIds method.
bool CanGetNamevalue(void) const
Check if it is safe to call GetNamevalue method.
TNamevalue & SetNamevalue(void)
Assign a value to Namevalue data member.
bool CanGetIscale(void) const
Check if it is safe to call GetIscale method.
bool IsSetNumber(void) const
unique number of spectrum Check if a value has been assigned to Number data member.
const TNamevalue & GetNamevalue(void) const
Get the Namevalue member data.
void ResetPrecursormz(void)
Reset Precursormz data member.
void ResetIscale(void)
Reset Iscale data member.
bool CanGetMz(void) const
Check if it is safe to call GetMz method.
CMSSpectrum_Base & operator=(const CMSSpectrum_Base &)
bool CanGetNumber(void) const
Check if it is safe to call GetNumber method.
vector< int > m_Abundance
DECLARE_INTERNAL_TYPE_INFO()
bool IsSetIscale(void) const
abundance scale, float to integer Check if a value has been assigned to Iscale data member.
const TCharge & GetCharge(void) const
Get the Charge member data.
TMz & SetMz(void)
Assign a value to Mz data member.
bool IsSetIds(void) const
ids/filenames Check if a value has been assigned to Ids data member.
const TIds & GetIds(void) const
Get the Ids member data.
TNumber GetNumber(void) const
Get the Number member data.
TCharge & SetCharge(void)
Assign a value to Charge data member.
list< CRef< CNameValue > > TNamevalue
TIscale GetIscale(void) const
Get the Iscale member data.
bool CanGetAbundance(void) const
Check if it is safe to call GetAbundance method.
TIscale & SetIscale(void)
Assign a value to Iscale data member.
bool IsSetMz(void) const
scaled product m/z Check if a value has been assigned to Mz data member.
bool IsSetNamevalue(void) const
extra info: retention times, etc.
TPrecursormz GetPrecursormz(void) const
Get the Precursormz member data.
static bool GetIds(const T &d, set< string > &labels, const string name="", bool detect=false, bool found=false)