41 #ifndef ALGO_MS_FORMATS_PEPXML_SPECTRUM_QUERY_BASE_HPP
42 #define ALGO_MS_FORMATS_PEPXML_SPECTRUM_QUERY_BASE_HPP
53 #ifndef BEGIN_objects_SCOPE
54 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
55 # define END_objects_SCOPE END_SCOPE(objects)
123 e_retention_time_sec,
124 e_precursor_neutral_mass,
126 e_search_specification,
141 bool IsSetSpectrum(
void)
const;
148 bool CanGetSpectrum(
void)
const;
151 void ResetSpectrum(
void);
157 const TSpectrum& GetSpectrum(
void)
const;
179 bool IsSetStart_scan(
void)
const;
186 bool CanGetStart_scan(
void)
const;
189 void ResetStart_scan(
void);
216 bool IsSetEnd_scan(
void)
const;
223 bool CanGetEnd_scan(
void)
const;
226 void ResetEnd_scan(
void);
253 bool IsSetRetention_time_sec(
void)
const;
260 bool CanGetRetention_time_sec(
void)
const;
263 void ResetRetention_time_sec(
void);
290 bool IsSetPrecursor_neutral_mass(
void)
const;
297 bool CanGetPrecursor_neutral_mass(
void)
const;
300 void ResetPrecursor_neutral_mass(
void);
327 bool IsSetAssumed_charge(
void)
const;
334 bool CanGetAssumed_charge(
void)
const;
337 void ResetAssumed_charge(
void);
364 bool IsSetSearch_specification(
void)
const;
371 bool CanGetSearch_specification(
void)
const;
374 void ResetSearch_specification(
void);
402 bool IsSetIndex(
void)
const;
409 bool CanGetIndex(
void)
const;
412 void ResetIndex(
void);
418 TIndex GetIndex(
void)
const;
474 bool IsSetAttlist(
void)
const;
481 bool CanGetAttlist(
void)
const;
484 void ResetAttlist(
void);
490 const TAttlist& GetAttlist(
void)
const;
511 bool IsSetSearch_result(
void)
const;
518 bool CanGetSearch_result(
void)
const;
521 void ResetSearch_result(
void);
536 virtual void Reset(
void);
568 return IsSetSpectrum();
574 if (!CanGetSpectrum()) {
590 m_Spectrum = std::forward<CSpectrum_query_Base::C_Attlist::TSpectrum>(
value);
598 if (!IsSetSpectrum()) {
615 return IsSetStart_scan();
628 if (!CanGetStart_scan()) {
637 m_Start_scan =
value;
645 if (!IsSetStart_scan()) {
662 return IsSetEnd_scan();
675 if (!CanGetEnd_scan()) {
692 if (!IsSetEnd_scan()) {
709 return IsSetRetention_time_sec();
715 m_Retention_time_sec = 0;
722 if (!CanGetRetention_time_sec()) {
725 return m_Retention_time_sec;
731 m_Retention_time_sec =
value;
739 if (!IsSetRetention_time_sec()) {
740 memset(&m_Retention_time_sec,
UnassignedByte(),
sizeof(m_Retention_time_sec));
744 return m_Retention_time_sec;
756 return IsSetPrecursor_neutral_mass();
762 m_Precursor_neutral_mass = 0;
769 if (!CanGetPrecursor_neutral_mass()) {
772 return m_Precursor_neutral_mass;
778 m_Precursor_neutral_mass =
value;
786 if (!IsSetPrecursor_neutral_mass()) {
787 memset(&m_Precursor_neutral_mass,
UnassignedByte(),
sizeof(m_Precursor_neutral_mass));
791 return m_Precursor_neutral_mass;
803 return IsSetAssumed_charge();
809 m_Assumed_charge = 0;
816 if (!CanGetAssumed_charge()) {
819 return m_Assumed_charge;
825 m_Assumed_charge =
value;
833 if (!IsSetAssumed_charge()) {
834 memset(&m_Assumed_charge,
UnassignedByte(),
sizeof(m_Assumed_charge));
838 return m_Assumed_charge;
850 return IsSetSearch_specification();
856 if (!CanGetSearch_specification()) {
859 return m_Search_specification;
865 m_Search_specification =
value;
872 m_Search_specification = std::forward<CSpectrum_query_Base::C_Attlist::TSearch_specification>(
value);
880 if (!IsSetSearch_specification()) {
885 return m_Search_specification;
910 if (!CanGetIndex()) {
Base class for all serializable objects.
MS/MS spectrum, precursor ion charge and mass.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
static string UnassignedString(void)
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_PEPXML_EXPORT
TEnd_scan & SetEnd_scan(void)
Assign a value to End_scan data member.
double m_Retention_time_sec
bool IsSetSearch_specification(void) const
Check if a value has been assigned to Search_specification data member.
bool CanGetAssumed_charge(void) const
Check if it is safe to call GetAssumed_charge method.
void ResetEnd_scan(void)
Reset End_scan data member.
bool CanGetPrecursor_neutral_mass(void) const
Check if it is safe to call GetPrecursor_neutral_mass method.
bool IsSetAssumed_charge(void) const
Check if a value has been assigned to Assumed_charge data member.
const TSpectrum & GetSpectrum(void) const
Get the Spectrum member data.
bool IsSetIndex(void) const
Check if a value has been assigned to Index data member.
TStart_scan GetStart_scan(void) const
Get the Start_scan member data.
C_Attlist(const C_Attlist &)
bool CanGetSpectrum(void) const
Check if it is safe to call GetSpectrum method.
TIndex GetIndex(void) const
Get the Index member data.
TPrecursor_neutral_mass & SetPrecursor_neutral_mass(void)
Assign a value to Precursor_neutral_mass data member.
bool CanGetSearch_specification(void) const
Check if it is safe to call GetSearch_specification method.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
bool IsSetSearch_result(void) const
Check if a value has been assigned to Search_result data member.
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
string m_Search_specification
TRetention_time_sec & SetRetention_time_sec(void)
Assign a value to Retention_time_sec data member.
C_Attlist & operator=(const C_Attlist &)
void ResetPrecursor_neutral_mass(void)
Reset Precursor_neutral_mass data member.
bool CanGetIndex(void) const
Check if it is safe to call GetIndex method.
void ResetAssumed_charge(void)
Reset Assumed_charge data member.
bool CanGetEnd_scan(void) const
Check if it is safe to call GetEnd_scan method.
TIndex & SetIndex(void)
Assign a value to Index data member.
DECLARE_INTERNAL_TYPE_INFO()
TSpectrum & SetSpectrum(void)
Assign a value to Spectrum data member.
bool CanGetSearch_result(void) const
Check if it is safe to call GetSearch_result method.
Tparent::CMemberIndex< E_memberIndex, 9 > TmemberIndex
string TSearch_specification
TSearch_specification & SetSearch_specification(void)
Assign a value to Search_specification data member.
CRef< TAttlist > m_Attlist
double m_Precursor_neutral_mass
const TSearch_result & GetSearch_result(void) const
Get the Search_result member data.
double TPrecursor_neutral_mass
double TRetention_time_sec
TAssumed_charge & SetAssumed_charge(void)
Assign a value to Assumed_charge data member.
CSpectrum_query_Base(const CSpectrum_query_Base &)
TPrecursor_neutral_mass GetPrecursor_neutral_mass(void) const
Get the Precursor_neutral_mass member data.
TAssumed_charge GetAssumed_charge(void) const
Get the Assumed_charge member data.
bool IsSetStart_scan(void) const
Check if a value has been assigned to Start_scan data member.
bool CanGetStart_scan(void) const
Check if it is safe to call GetStart_scan method.
bool IsSetSpectrum(void) const
Check if a value has been assigned to Spectrum data member.
bool IsSetRetention_time_sec(void) const
Check if a value has been assigned to Retention_time_sec data member.
void ResetRetention_time_sec(void)
Reset Retention_time_sec data member.
list< CRef< CSearch_result > > m_Search_result
bool IsSetPrecursor_neutral_mass(void) const
Check if a value has been assigned to Precursor_neutral_mass data member.
TRetention_time_sec GetRetention_time_sec(void) const
Get the Retention_time_sec member data.
bool IsSetEnd_scan(void) const
Check if a value has been assigned to End_scan data member.
void ResetIndex(void)
Reset Index data member.
list< CRef< CSearch_result > > TSearch_result
void ResetStart_scan(void)
Reset Start_scan data member.
const TSearch_specification & GetSearch_specification(void) const
Get the Search_specification member data.
DECLARE_INTERNAL_TYPE_INFO()
TStart_scan & SetStart_scan(void)
Assign a value to Start_scan data member.
CSpectrum_query_Base & operator=(const CSpectrum_query_Base &)
bool CanGetRetention_time_sec(void) const
Check if it is safe to call GetRetention_time_sec method.
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
TSearch_result & SetSearch_result(void)
Assign a value to Search_result data member.
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
TEnd_scan GetEnd_scan(void) const
Get the End_scan member data.
void ResetAttlist(void)
Reset Attlist data member.