41 #ifndef OBJECTS_MACRO_MOLINFO_FIELD_BASE_HPP
42 #define OBJECTS_MACRO_MOLINFO_FIELD_BASE_HPP
57 #ifndef BEGIN_objects_SCOPE
58 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
59 # define END_objects_SCOPE END_SCOPE(objects)
106 virtual void Reset(
void);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TMol_class GetMol_class(void) const
Get the variant data.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsTechnique(void) const
Check if variant Technique is selected.
static const char *const sm_SelectionNames[]
bool IsMolecule(void) const
Check if variant Molecule is selected.
bool IsMol_class(void) const
Check if variant Mol_class is selected.
virtual void Reset(void)
Reset the whole object.
CMolinfo_field_Base(const CMolinfo_field_Base &)
TTopology & SetTopology(void)
Select the variant.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
bool IsCompletedness(void) const
Check if variant Completedness is selected.
TMolecule GetMolecule(void) const
Get the variant data.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
TMol_class & SetMol_class(void)
Select the variant.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
bool IsTopology(void) const
Check if variant Topology is selected.
EMolecule_class_type
Access to EMolecule_class_type's attributes (values, names) as defined in spec.
EStrand_type
Access to EStrand_type's attributes (values, names) as defined in spec.
DECLARE_INTERNAL_TYPE_INFO()
ECompletedness_type TCompletedness
TStrand & SetStrand(void)
Select the variant.
CMolinfo_field_Base(void)
CMolinfo_field_Base & operator=(const CMolinfo_field_Base &)
TTopology GetTopology(void) const
Get the variant data.
TCompletedness m_Completedness
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TCompletedness GetCompletedness(void) const
Get the variant data.
ETechnique_type TTechnique
TCompletedness & SetCompletedness(void)
Select the variant.
TMolecule & SetMolecule(void)
Select the variant.
TStrand GetStrand(void) const
Get the variant data.
TCompletedness m_Completedness
virtual ~CMolinfo_field_Base(void)
ETechnique_type
Access to ETechnique_type's attributes (values, names) as defined in spec.
EMolecule_type
Access to EMolecule_type's attributes (values, names) as defined in spec.
bool IsStrand(void) const
Check if variant Strand is selected.
ECompletedness_type
Access to ECompletedness_type's attributes (values, names) as defined in spec.
TTechnique & SetTechnique(void)
Select the variant.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
EMolecule_class_type TMol_class
ETopology_type
Access to ETopology_type's attributes (values, names) as defined in spec.
TTechnique GetTechnique(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
@ e_MaxChoice
== e_Strand+1
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value