41 #ifndef OBJECTS_PCSUBSTANCE_PC_XREFDATA_BASE_HPP
42 #define OBJECTS_PCSUBSTANCE_PC_XREFDATA_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
122 virtual void Reset(
void);
125 virtual void ResetSelection(
void);
131 E_Choice Which(
void)
const;
137 void CheckSelected(E_Choice index)
const;
143 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
151 static string SelectionName(E_Choice index);
206 bool IsRegid(
void)
const;
212 const TRegid& GetRegid(
void)
const;
233 bool IsRn(
void)
const;
239 const TRn& GetRn(
void)
const;
260 bool IsMesh(
void)
const;
266 const TMesh& GetMesh(
void)
const;
272 TMesh& SetMesh(
void);
287 bool IsPmid(
void)
const;
293 TPmid GetPmid(
void)
const;
299 TPmid& SetPmid(
void);
314 bool IsGi(
void)
const;
320 TGi GetGi(
void)
const;
341 bool IsMmdb(
void)
const;
347 TMmdb GetMmdb(
void)
const;
353 TMmdb& SetMmdb(
void);
368 bool IsSid(
void)
const;
374 TSid GetSid(
void)
const;
395 bool IsCid(
void)
const;
401 TCid GetCid(
void)
const;
422 bool IsDburl(
void)
const;
428 const TDburl& GetDburl(
void)
const;
449 bool IsSburl(
void)
const;
455 const TSburl& GetSburl(
void)
const;
476 bool IsAsurl(
void)
const;
482 const TAsurl& GetAsurl(
void)
const;
503 bool IsProtein_gi(
void)
const;
530 bool IsNucleotide_gi(
void)
const;
557 bool IsTaxonomy(
void)
const;
584 bool IsAid(
void)
const;
590 TAid GetAid(
void)
const;
611 bool IsMim(
void)
const;
617 TMim GetMim(
void)
const;
638 bool IsGene(
void)
const;
644 TGene GetGene(
void)
const;
650 TGene& SetGene(
void);
665 bool IsProbe(
void)
const;
671 TProbe GetProbe(
void)
const;
692 bool IsBiosystem(
void)
const;
719 bool IsGeogse(
void)
const;
746 bool IsGeogsm(
void)
const;
773 bool IsPatent(
void)
const;
779 const TPatent& GetPatent(
void)
const;
800 bool IsProtein_accession(
void)
const;
827 bool IsNucleotide_accession(
void)
const;
854 bool IsDoi(
void)
const;
860 const TDoi& GetDoi(
void)
const;
881 bool IsCitation(
void)
const;
887 const TCitation& GetCitation(
void)
const;
911 static const char*
const sm_SelectionNames[];
929 NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string>
m_string;
Depositor Provided X-Ref and LinkOut data for Entrez.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_PCSUBSTANCE_EXPORT
TMim GetMim(void) const
Get the variant data.
bool IsRn(void) const
Check if variant Rn is selected.
DECLARE_INTERNAL_TYPE_INFO()
TProtein_gi & SetProtein_gi(void)
Select the variant.
string TNucleotide_accession
bool IsMim(void) const
Check if variant Mim is selected.
TCid & SetCid(void)
Select the variant.
bool IsRegid(void) const
Check if variant Regid is selected.
const TProtein_accession & GetProtein_accession(void) const
Get the variant data.
TGeogse & SetGeogse(void)
Select the variant.
TNucleotide_gi & SetNucleotide_gi(void)
Select the variant.
TProtein_gi GetProtein_gi(void) const
Get the variant data.
TAid & SetAid(void)
Select the variant.
bool IsNucleotide_gi(void) const
Check if variant Nucleotide_gi is selected.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
TNucleotide_gi m_Nucleotide_gi
TPmid & SetPmid(void)
Select the variant.
CPC_XRefData_Base & operator=(const CPC_XRefData_Base &)
TGi & SetGi(void)
Select the variant.
bool IsGeogsm(void) const
Check if variant Geogsm is selected.
TProbe & SetProbe(void)
Select the variant.
TGene GetGene(void) const
Get the variant data.
const TCitation & GetCitation(void) const
Get the variant data.
TRn & SetRn(void)
Select the variant.
bool IsProtein_accession(void) const
Check if variant Protein_accession is selected.
TPmid GetPmid(void) const
Get the variant data.
bool IsNucleotide_accession(void) const
Check if variant Nucleotide_accession is selected.
TRegid & SetRegid(void)
Select the variant.
bool IsAid(void) const
Check if variant Aid is selected.
TMesh & SetMesh(void)
Select the variant.
TMmdb & SetMmdb(void)
Select the variant.
bool IsMmdb(void) const
Check if variant Mmdb is selected.
bool IsSburl(void) const
Check if variant Sburl is selected.
TNucleotide_accession & SetNucleotide_accession(void)
Select the variant.
TNucleotide_gi GetNucleotide_gi(void) const
Get the variant data.
TPatent & SetPatent(void)
Select the variant.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
TDoi & SetDoi(void)
Select the variant.
TBiosystem & SetBiosystem(void)
Select the variant.
bool IsDoi(void) const
Check if variant Doi is selected.
bool IsCid(void) const
Check if variant Cid is selected.
const TRegid & GetRegid(void) const
Get the variant data.
TCid GetCid(void) const
Get the variant data.
bool IsAsurl(void) const
Check if variant Asurl is selected.
TMim & SetMim(void)
Select the variant.
TTaxonomy & SetTaxonomy(void)
Select the variant.
TCitation & SetCitation(void)
Select the variant.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
const TMesh & GetMesh(void) const
Get the variant data.
const TNucleotide_accession & GetNucleotide_accession(void) const
Get the variant data.
TProbe GetProbe(void) const
Get the variant data.
const TRn & GetRn(void) const
Get the variant data.
TBiosystem GetBiosystem(void) const
Get the variant data.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsCitation(void) const
Check if variant Citation is selected.
TGeogsm GetGeogsm(void) const
Get the variant data.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TAid GetAid(void) const
Get the variant data.
TGi GetGi(void) const
Get the variant data.
const TDburl & GetDburl(void) const
Get the variant data.
TNucleotide_gi m_Nucleotide_gi
bool IsPmid(void) const
Check if variant Pmid is selected.
bool IsGi(void) const
Check if variant Gi is selected.
bool IsTaxonomy(void) const
Check if variant Taxonomy is selected.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TProtein_accession & SetProtein_accession(void)
Select the variant.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TMmdb GetMmdb(void) const
Get the variant data.
bool IsBiosystem(void) const
Check if variant Biosystem is selected.
bool IsGene(void) const
Check if variant Gene is selected.
bool IsProbe(void) const
Check if variant Probe is selected.
bool IsDburl(void) const
Check if variant Dburl is selected.
TSid & SetSid(void)
Select the variant.
TSburl & SetSburl(void)
Select the variant.
CPC_XRefData_Base(const CPC_XRefData_Base &)
const TSburl & GetSburl(void) const
Get the variant data.
TDburl & SetDburl(void)
Select the variant.
const TDoi & GetDoi(void) const
Get the variant data.
TTaxonomy GetTaxonomy(void) const
Get the variant data.
TGeogsm & SetGeogsm(void)
Select the variant.
bool IsMesh(void) const
Check if variant Mesh is selected.
bool IsProtein_gi(void) const
Check if variant Protein_gi is selected.
bool IsSid(void) const
Check if variant Sid is selected.
TAsurl & SetAsurl(void)
Select the variant.
E_Choice Which(void) const
Which variant is currently selected.
void * m_dummy_pointer_for_alignment
TGeogse GetGeogse(void) const
Get the variant data.
TGene & SetGene(void)
Select the variant.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
TSid GetSid(void) const
Get the variant data.
bool IsPatent(void) const
Check if variant Patent is selected.
string TProtein_accession
const TPatent & GetPatent(void) const
Get the variant data.
bool IsGeogse(void) const
Check if variant Geogse is selected.
const TAsurl & GetAsurl(void) const
Get the variant data.
@ e_Protein_gi
GenBank General ID for a Protein Note: Must be greater than "0" or, if invalid, "0".
@ e_Protein_accession
GenBank Accession for a Protein.
@ e_Nucleotide_accession
GenBank Accession for a Nucleotide.
@ e_Cid
PubChem Compound ID Note: Must be greater than "0" or, if invalid, "0".
@ e_Citation
citation when PMID or DOI are not available
@ e_Rn
Registry Number (e.g., EC Number, CAS Number)
@ e_Dburl
Depositor Source Database Homepage.
@ e_Nucleotide_gi
GenBank General ID for a Nucleotide Note: Must be greater than "0" or, if invalid,...
@ e_Geogsm
Gene Expression Omnibus Sample Accession (GEO GSM) ID Note: Must be greater than "0" or,...
@ e_Aid
PubChem BioAssay ID Note: Must be greater than "0" or, if invalid, "0".
@ e_Doi
digital object identifier (DOI)
@ e_Gene
Entrez Gene ID Note: Must be greater than "0" or, if invalid, "0".
@ e_Gi
GenBank General ID Note: Please use protein-gi or nucleotide-gi, if possible Note: Must be greater th...
@ e_Probe
Probe ID Note: Must be greater than "0" or, if invalid, "0".
@ e_Biosystem
BioSystem ID Note: Must be greater than "0" or, if invalid, "0".
@ e_Pmid
PubMed ID Note: Must be greater than "0" or, if invalid, "0".
@ e_Mmdb
MMDB ID Note: Must be greater than "0" or, if invalid, "0".
@ e_Regid
External Database Registry ID.
@ e_Sid
PubChem Substance ID Note: Must be greater than "0" or, if invalid, "0".
@ e_Asurl
Depositor Homepage for an Assay.
@ e_Mim
MIM, Mendelian Inheritance in Man, Number Note: Must be greater than "0" or, if invalid,...
@ e_Geogse
Gene Expression Omnibus Series Accession (GEO GSE) ID Note: Must be greater than "0" or,...
@ e_Sburl
Depositor Homepage for a Substance.
@ e_Taxonomy
Taxonomy ID for an Organism Note: Must be greater than "0" or, if invalid, "0".
@ e_not_set
No variant selected.
@ e_Patent
Patent Identifier (e.g., USPTO, EPO, WPO, JPO, CPO)
const GenericPointer< typename T::ValueType > T2 value