41 #ifndef OBJECTS_PCASSAY2_PC_RESULTTYPE_BASE_HPP
42 #define OBJECTS_PCASSAY2_PC_RESULTTYPE_BASE_HPP
53 #ifndef BEGIN_objects_SCOPE
54 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
55 # define END_objects_SCOPE END_SCOPE(objects)
59 #ifndef BEGIN_pcassay2_SCOPE
60 # define BEGIN_pcassay2_SCOPE BEGIN_SCOPE(pcassay2)
61 # define END_pcassay2_SCOPE END_SCOPE(pcassay2)
445 NCBI_NS_NCBI::CUnionBuffer<TFset>
m_Fset;
448 NCBI_NS_NCBI::CUnionBuffer<TIset>
m_Iset;
451 NCBI_NS_NCBI::CUnionBuffer<TSset>
m_Sset;
1086 if ( m_choice != index )
1087 ThrowInvalidSelection(index);
1096 DoSelect(index, pool);
1103 Select(index, reset, 0);
1109 return m_choice == e_Fset;
1115 CheckSelected(e_Fset);
1129 return m_choice == e_Fmin;
1135 CheckSelected(e_Fmin);
1156 return m_choice == e_Fmax;
1162 CheckSelected(e_Fmax);
1183 return m_choice == e_Frange;
1189 return m_choice == e_Iset;
1195 CheckSelected(e_Iset);
1209 return m_choice == e_Imin;
1215 CheckSelected(e_Imin);
1236 return m_choice == e_Imax;
1242 CheckSelected(e_Imax);
1263 return m_choice == e_Irange;
1269 return m_choice == e_Sset;
1275 CheckSelected(e_Sset);
1364 m_Name = std::forward<CPC_ResultType_Base::TName>(
value);
1551 m_Sunit = std::forward<CPC_ResultType_Base::TSunit>(
value);
1617 return m_Tc.NotEmpty();
CPC_ConcentrationAttr –.
Allowed Values, used for validating incoming data If type is "float".
Definition of Allowed Result Types for a given Assay.
Base class for all serializable objects.
static CStringUTF8 UnassignedStringUTF8(void)
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
#define ENUM_METHOD_NAME(EnumName)
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.
void SetConstraints(TConstraints &value)
Assign a value to Constraints data member.
TTransform & SetTransform(void)
Assign a value to Transform data member.
TUnit GetUnit(void) const
Get the Unit member data.
bool IsSetDescription(void) const
Result Field Description Check if a value has been assigned to Description data member.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
const TIset & GetIset(void) const
Get the variant data.
TAnnot GetAnnot(void) const
Get the Annot member data.
bool IsIset(void) const
Check if variant Iset is selected.
bool IsSetSunit(void) const
ATTENTION: sunit field is DEPRECATED.
void SetAnnot(TAnnot value)
Assign a value to Annot data member.
void SetFmin(TFmin value)
Select the variant and set its data.
TType & SetType(void)
Assign a value to Type data member.
TConstraints & SetConstraints(void)
Assign a value to Constraints data member.
void SetFmax(TFmax value)
Select the variant and set its data.
TTid & SetTid(void)
Assign a value to Tid data member.
void ResetAc_qualifier(void)
Reset Ac_qualifier data member.
bool CanGetTc(void) const
Check if it is safe to call GetTc method.
TUnit & SetUnit(void)
Assign a value to Unit data member.
const TFset & GetFset(void) const
Get the variant data.
list< CStringUTF8 > TDescription
TImin GetImin(void) const
Get the variant data.
bool IsSetTc(void) const
ATTENTION: stransform field is DEPRECATED.
void ResetConstraints(void)
Reset Constraints data member.
void SetSunit(TSunit &&value)
DECLARE_INTERNAL_TYPE_INFO()
void SetAc(TAc value)
Assign a value to Ac data member.
TIset & SetIset(void)
Select the variant.
const TName & GetName(void) const
Get the Name member data.
void SetType(TType value)
Assign a value to Type data member.
bool CanGetTid(void) const
Check if it is safe to call GetTid method.
bool IsSetTid(void) const
Tracking or Description Information Assay Result Field Type ID (TID) Check if a value has been assign...
Tparent::CMemberIndex< E_memberIndex, 13 > TmemberIndex
const TDescription & GetDescription(void) const
Get the Description member data.
TTc & SetTc(void)
Assign a value to Tc data member.
void SetFrange(TFrange &value)
Select the variant and set its data.
TSunit & SetSunit(void)
Assign a value to Sunit data member.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
CPC_ConcentrationAttr TTc
bool CanGetAc_qualifier(void) const
Check if it is safe to call GetAc_qualifier method.
C_Constraints & operator=(const C_Constraints &)
bool IsImax(void) const
Check if variant Imax is selected.
void SetSunit(const TSunit &value)
Assign a value to Sunit data member.
TTransform GetTransform(void) const
Get the Transform member data.
bool CanGetTransform(void) const
Check if it is safe to call GetTransform method.
void SetTid(TTid value)
Assign a value to Tid data member.
bool CanGetSunit(void) const
Check if it is safe to call GetSunit method.
bool IsImin(void) const
Check if variant Imin is selected.
const TSunit & GetSunit(void) const
Get the Sunit member data.
bool IsSetType(void) const
Check if a value has been assigned to Type data member.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsSetName(void) const
Result Field Name (short name for display) Check if a value has been assigned to Name data member.
void ResetSunit(void)
Reset Sunit data member.
bool CanGetUnit(void) const
Check if it is safe to call GetUnit method.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
void ResetTid(void)
Reset Tid data member.
bool IsIrange(void) const
Check if variant Irange is selected.
TAc & SetAc(void)
Assign a value to Ac data member.
CPC_ResultType_Base(void)
bool IsSetAc(void) const
if true, indicates that this TID field provides active concentration summary by reporting the concent...
bool IsFmin(void) const
Check if variant Fmin is selected.
TType GetType(void) const
Get the Type member data.
C_Constraints TConstraints
NCBI_NS_NCBI::CUnionBuffer< TFset > m_Fset
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
TTid GetTid(void) const
Get the Tid member data.
void ResetAnnot(void)
Reset Annot data member.
void ResetTc(void)
Reset Tc data member.
bool IsSetUnit(void) const
Check if a value has been assigned to Unit data member.
void ResetTransform(void)
Reset Transform data member.
bool CanGetAnnot(void) const
Check if it is safe to call GetAnnot method.
DECLARE_INTERNAL_TYPE_INFO()
bool IsFset(void) const
Check if variant Fset is selected.
bool IsSetAc_qualifier(void) const
endpoint qualifier (e.g.
void ResetDescription(void)
Reset Description data member.
TSset & SetSset(void)
Select the variant.
TName & SetName(void)
Assign a value to Name data member.
bool IsSetAnnot(void) const
treat substance associated cross-reference as regular TID web servers would make a link to the corres...
void SetName(const TName &value)
Assign a value to Name data member.
bool IsFmax(void) const
Check if variant Fmax is selected.
void SetIrange(TIrange &value)
Select the variant and set its data.
TAc GetAc(void) const
Get the Ac member data.
TAc_qualifier GetAc_qualifier(void) const
Get the Ac_qualifier member data.
TImin & SetImin(void)
Select the variant.
bool CanGetName(void) const
Check if it is safe to call GetName method.
C_Constraints(const C_Constraints &)
void SetTc(TTc &value)
Assign a value to Tc data member.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
bool IsFrange(void) const
Check if variant Frange is selected.
E_Choice Which(void) const
Which variant is currently selected.
void Reset(void)
Reset the whole object.
void ResetAc(void)
Reset Ac data member.
NCBI_NS_NCBI::CUnionBuffer< TSset > m_Sset
NCBI_NS_NCBI::CUnionBuffer< TIset > m_Iset
TDescription & SetDescription(void)
Assign a value to Description data member.
TFset & SetFset(void)
Select the variant.
const TIrange & GetIrange(void) const
Get the variant data.
void ResetType(void)
Reset Type data member.
const TSset & GetSset(void) const
Get the variant data.
const TTc & GetTc(void) const
Get the Tc member data.
CPC_ResultType_Base & operator=(const CPC_ResultType_Base &)
TImax & SetImax(void)
Select the variant.
void SetImax(TImax value)
Select the variant and set its data.
bool CanGetAc(void) const
Check if it is safe to call GetAc method.
bool CanGetConstraints(void) const
Check if it is safe to call GetConstraints method.
TImax GetImax(void) const
Get the variant data.
CPC_ResultType_Base(const CPC_ResultType_Base &)
list< CStringUTF8 > m_Description
TFmin & SetFmin(void)
Select the variant.
TFrange & SetFrange(void)
Select the variant.
NCBI_NS_NCBI::CSerialObject * m_object
void SetImin(TImin value)
Select the variant and set its data.
const TConstraints & GetConstraints(void) const
Get the Constraints member data.
bool IsSset(void) const
Check if variant Sset is selected.
TFmax & SetFmax(void)
Select the variant.
bool CanGetDescription(void) const
Check if it is safe to call GetDescription method.
void SetName(TName &&value)
TFmin GetFmin(void) const
Get the variant data.
TFmax GetFmax(void) const
Get the variant data.
bool CanGetType(void) const
Check if it is safe to call GetType method.
TAc_qualifier & SetAc_qualifier(void)
Assign a value to Ac_qualifier data member.
void ResetUnit(void)
Reset Unit data member.
CPC_IntegerMinMax TIrange
virtual ~CPC_ResultType_Base(void)
bool IsSetConstraints(void) const
Check if a value has been assigned to Constraints data member.
TIrange & SetIrange(void)
Select the variant.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
void ResetName(void)
Reset Name data member.
void SetTransform(TTransform value)
Assign a value to Transform data member.
virtual void Reset(void)
Reset the whole object.
const TFrange & GetFrange(void) const
Get the variant data.
bool IsSetTransform(void) const
Check if a value has been assigned to Transform data member.
void SetUnit(TUnit value)
Assign a value to Unit data member.
TAnnot & SetAnnot(void)
Assign a value to Annot data member.
@ eUnit_fgml
femtograms per mL
@ eUnit_cm_sec
centimeter / second
@ eUnit_ppb
Parts per Billion.
@ eUnit_ngml
nanograms per mL
@ eUnit_hr_ng_ml
hour * nanogram / milliliter
@ eUnit_pgml
picograms per mL
@ eUnit_ugml
micrograms per mL
@ eUnit_rmin
Reciprocal Minutes.
@ eUnit_mgml
milligrams per mL
@ eUnit_ppm
Parts per Million.
@ eUnit_rday
Reciprocal Days.
@ eUnit_l_kg
liter / kilogram
@ eUnit_rsec
Reciprocal Seconds.
@ eUnit_ppt
Parts per Thousand.
@ eUnit_ml_min_kg
milliliter / minute / kilogram
@ eUnit_mg_kg
milligram / kilogram
@ e_Iset
If type is "int" Allowed values must be equal to one of these.
@ e_Frange
Minimum/Maximum Range [ min <= x <= max ].
@ e_Fset
Allowed values must be equal to one of these.
@ e_Fmax
Allowed values (x) must be [ x <= fmax ].
@ e_Sset
If type is "string" Allowed values must be equal to one of these.
@ e_Fmin
Allowed values (x) must be [ fmin <= x ].
@ e_Irange
Minimum/Maximum Range [ min <= x <= max ].
@ e_Imin
Allowed values (x) must be [ imin <= x ].
@ e_Imax
Allowed values (x) must be [ x <= imax ].
@ e_not_set
No variant selected.
@ eAnnot_protein_target_accession
GenBank Accession for a Protein target.
@ eAnnot_aid
PubChem BioAssay ID, may be used in 'Summary' assay.
@ eAnnot_cid
PubChem Compound ID.
@ eAnnot_gene_target_id
NCBI Gene ID for a gene target.
@ eAnnot_probe
Entrez Probe ID.
@ eAnnot_other
for identifier types not currently support
@ eAnnot_mim
MIM, Mendelian Inheritance in Man, ID.
@ eAnnot_sid
PubChem Substance ID, may be used in 'Summary' assay.
@ eAnnot_nucleotide_target_accession
GenBank Accession for a DNA/RNA Nucleotide target.
@ eAnnot_taxonomy
Taxonomy ID for an Organism.
@ eAnnot_gene
Entrez Gene ID.
@ eAnnot_url
indicate TID data is a url that provides supplementary information
@ eAnnot_target_tax_id
NCBI Taxonomy ID for target molecule.
@ eAnnot_target_name
target name
@ eAnnot_target_descr
brief target description
@ eTransform_negative
Negative Linear Scale (-x)
@ eTransform_nln
Negative Natural Log Scane (-ln x)
@ eTransform_linear
Linear Scale (x)
@ eTransform_log
Log Base 10 Scale (log10 x)
@ eTransform_reciprocal
Reciprocal Scale (1/x)
@ eTransform_nlog
Negative Log Base 10 Scale (-log10 x)
@ eTransform_ln
Natural Log Scale (ln x)
bool IsSetDescription(void) const
Result Field Description Check if a value has been assigned to Description data member.
bool IsIset(void) const
Check if variant Iset is selected.
bool IsSetSunit(void) const
ATTENTION: sunit field is DEPRECATED.
EType
Result Data Type and Validation Information Result Data Type.
TTransform GetTransform(void) const
Get the Transform member data.
const TConstraints & GetConstraints(void) const
Get the Constraints member data.
TAnnot GetAnnot(void) const
Get the Annot member data.
TDescription & SetDescription(void)
Assign a value to Description data member.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool CanGetTc(void) const
Check if it is safe to call GetTc method.
TTid & SetTid(void)
Assign a value to Tid data member.
EUnit
Unit information provides the units for the values reported for this TID.
bool IsSetTc(void) const
Tested concentration attribute Check if a value has been assigned to Tc data member.
TType & SetType(void)
Assign a value to Type data member.
TName & SetName(void)
Assign a value to Name data member.
TUnit & SetUnit(void)
Assign a value to Unit data member.
const TName & GetName(void) const
Get the Name member data.
bool CanGetTid(void) const
Check if it is safe to call GetTid method.
bool IsSetTid(void) const
Tracking or Description Information Assay Result Field Type ID (TID) Check if a value has been assign...
TFset & SetFset(void)
Select the variant.
TTid GetTid(void) const
Get the Tid member data.
const TDescription & GetDescription(void) const
Get the Description member data.
list< string > m_Description
list< string > TDescription
bool IsImax(void) const
Check if variant Imax is selected.
const TSunit & GetSunit(void) const
Get the Sunit member data.
bool CanGetTransform(void) const
Check if it is safe to call GetTransform method.
ETransform
Value Transform information qualifies the values reported for this TID.
bool CanGetSunit(void) const
Check if it is safe to call GetSunit method.
bool IsImin(void) const
Check if variant Imin is selected.
bool IsSetType(void) const
Check if a value has been assigned to Type data member.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsSetName(void) const
Result Field Name (short name for display) Check if a value has been assigned to Name data member.
static const char *const sm_SelectionNames[]
bool CanGetUnit(void) const
Check if it is safe to call GetUnit method.
const TIset & GetIset(void) const
Get the variant data.
TImin GetImin(void) const
Get the variant data.
const TSset & GetSset(void) const
Get the variant data.
void ResetTid(void)
Reset Tid data member.
bool IsIrange(void) const
Check if variant Irange is selected.
TIset & SetIset(void)
Select the variant.
TUnit GetUnit(void) const
Get the Unit member data.
bool IsSetAc(void) const
if true, indicates that this TID field provides active concentration summary by reporting the concent...
bool IsFmin(void) const
Check if variant Fmin is selected.
void ResetAnnot(void)
Reset Annot data member.
bool IsSetUnit(void) const
Check if a value has been assigned to Unit data member.
void ResetTransform(void)
Reset Transform data member.
bool CanGetAnnot(void) const
Check if it is safe to call GetAnnot method.
bool IsFset(void) const
Check if variant Fset is selected.
bool IsSetAnnot(void) const
treat substance associated cross-reference as regular TID web servers would make a link to the corres...
bool IsFmax(void) const
Check if variant Fmax is selected.
CRef< TConstraints > m_Constraints
const TFset & GetFset(void) const
Get the variant data.
TAnnot & SetAnnot(void)
Assign a value to Annot data member.
bool CanGetName(void) const
Check if it is safe to call GetName method.
TAc GetAc(void) const
Get the Ac member data.
TType GetType(void) const
Get the Type member data.
bool IsFrange(void) const
Check if variant Frange is selected.
TFmin GetFmin(void) const
Get the variant data.
const TTc & GetTc(void) const
Get the Tc member data.
void ResetAc(void)
Reset Ac data member.
TImax GetImax(void) const
Get the variant data.
TSset & SetSset(void)
Select the variant.
TAc & SetAc(void)
Assign a value to Ac data member.
TImin & SetImin(void)
Select the variant.
TImax & SetImax(void)
Select the variant.
void ResetType(void)
Reset Type data member.
E_Choice Which(void) const
Which variant is currently selected.
bool CanGetAc(void) const
Check if it is safe to call GetAc method.
bool CanGetConstraints(void) const
Check if it is safe to call GetConstraints method.
TFmax & SetFmax(void)
Select the variant.
TTransform & SetTransform(void)
Assign a value to Transform data member.
TFmin & SetFmin(void)
Select the variant.
bool IsSset(void) const
Check if variant Sset is selected.
bool CanGetDescription(void) const
Check if it is safe to call GetDescription method.
bool CanGetType(void) const
Check if it is safe to call GetType method.
void ResetUnit(void)
Reset Unit data member.
bool IsSetConstraints(void) const
Check if a value has been assigned to Constraints data member.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
TFmax GetFmax(void) const
Get the variant data.
bool IsSetTransform(void) const
Check if a value has been assigned to Transform data member.
TSunit & SetSunit(void)
Assign a value to Sunit data member.
const GenericPointer< typename T::ValueType > T2 value
#define END_pcassay2_SCOPE
#define BEGIN_pcassay2_SCOPE