ResetSelection(
void);
141E_Choice Which(
void)
const;
147 voidCheckSelected(E_Choice index)
const;
153NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
161 static stringSelectionName(E_Choice index);
201 boolIsBval(
void)
const;
207 TBvalGetBval(
void)
const;
213 TBval& SetBval(
void);
228 boolIsBvec(
void)
const;
234 const TBvec& GetBvec(
void)
const;
240 TBvec& SetBvec(
void);
249 boolIsIval(
void)
const;
255 TIvalGetIval(
void)
const;
261 TIval& SetIval(
void);
276 boolIsIvec(
void)
const;
282 const TIvec& GetIvec(
void)
const;
288 TIvec& SetIvec(
void);
297 boolIsFval(
void)
const;
303 TFvalGetFval(
void)
const;
309 TFval& SetFval(
void);
324 boolIsFvec(
void)
const;
330 const TFvec& GetFvec(
void)
const;
336 TFvec& SetFvec(
void);
345 boolIsSval(
void)
const;
351 const TSval& GetSval(
void)
const;
357 TSval& SetSval(
void);
372 boolIsSlist(
void)
const;
378 const TSlist& GetSlist(
void)
const;
384 TSlist& SetSlist(
void);
393 boolIsDate(
void)
const;
399 const TDate& GetDate(
void)
const;
405 TDate& SetDate(
void);
419 boolIsBinary(
void)
const;
425 const TBinary& GetBinary(
void)
const;
440 boolIsBitlist(
void)
const;
446 const TBitlist& GetBitlist(
void)
const;
464 static const char*
constsm_SelectionNames[];
468NCBI_NS_NCBI::CUnionBuffer<TBvec>
m_Bvec;
470NCBI_NS_NCBI::CUnionBuffer<TIvec>
m_Ivec;
472NCBI_NS_NCBI::CUnionBuffer<TFvec>
m_Fvec;
476NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string>
m_string;
503 boolIsSetUrn(
void)
const;
510 boolCanGetUrn(
void)
const;
513 voidResetUrn(
void);
519 const TUrn& GetUrn(
void)
const;
531 TUrn& SetUrn(
void);
540 boolIsSetValue(
void)
const;
547 boolCanGetValue(
void)
const;
550 voidResetValue(
void);
556 const TValue& GetValue(
void)
const;
568 TValue& SetValue(
void);
571 virtual voidReset(
void);
603 if( m_choice != index )
604ThrowInvalidSelection(index);
613DoSelect(index, pool);
620Select(index, reset, 0);
626 returnm_choice == e_Bval;
632CheckSelected(e_Bval);
653 returnm_choice == e_Bvec;
659CheckSelected(e_Bvec);
673 returnm_choice == e_Ival;
679CheckSelected(e_Ival);
700 returnm_choice == e_Ivec;
706CheckSelected(e_Ivec);
720 returnm_choice == e_Fval;
726CheckSelected(e_Fval);
747 returnm_choice == e_Fvec;
753CheckSelected(e_Fvec);
767 returnm_choice == e_Sval;
773CheckSelected(e_Sval);
787 returnm_choice == e_Slist;
793CheckSelected(e_Slist);
807 returnm_choice == e_Date;
813 returnm_choice == e_Binary;
819CheckSelected(e_Binary);
833 returnm_choice == e_Bitlist;
839CheckSelected(e_Bitlist);
853 return m_Urn.NotEmpty();
Compound Description/Descriptor Data.
Base class for all serializable objects.
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_PCSUBSTANCE_EXPORT
TBval GetBval(void) const
Get the variant data.
bool IsIval(void) const
Check if variant Ival is selected.
bool IsSetUrn(void) const
Universal Resource Name [for Value Qualification] Check if a value has been assigned to Urn data memb...
const TBvec & GetBvec(void) const
Get the variant data.
TFval & SetFval(void)
Select the variant.
bool CanGetValue(void) const
Check if it is safe to call GetValue method.
void ResetValue(void)
Reset Value data member.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
E_Choice
Choice variants.
const TFvec & GetFvec(void) const
Get the variant data.
bool IsFvec(void) const
Check if variant Fvec is selected.
DECLARE_INTERNAL_TYPE_INFO()
const TUrn & GetUrn(void) const
Get the Urn member data.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
NCBI_NS_NCBI::CUnionBuffer< TBinary > m_Binary
TBinary & SetBinary(void)
Select the variant.
bool IsDate(void) const
Check if variant Date is selected.
TIval GetIval(void) const
Get the variant data.
bool CanGetUrn(void) const
Check if it is safe to call GetUrn method.
DECLARE_INTERNAL_TYPE_INFO()
bool IsSetValue(void) const
Check if a value has been assigned to Value data member.
bool IsSval(void) const
Check if variant Sval is selected.
TIval & SetIval(void)
Select the variant.
bool IsIvec(void) const
Check if variant Ivec is selected.
const TSval & GetSval(void) const
Get the variant data.
const TBitlist & GetBitlist(void) const
Get the variant data.
NCBI_NS_NCBI::CUnionBuffer< TBitlist > m_Bitlist
C_Value & operator=(const C_Value &)
E_Choice Which(void) const
Which variant is currently selected.
const TIvec & GetIvec(void) const
Get the variant data.
TSval & SetSval(void)
Select the variant.
bool IsBval(void) const
Check if variant Bval is selected.
TUrn & SetUrn(void)
Assign a value to Urn data member.
TSlist & SetSlist(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< TSlist > m_Slist
NCBI_NS_NCBI::CUnionBuffer< TFvec > m_Fvec
CPC_InfoData_Base & operator=(const CPC_InfoData_Base &)
bool IsBinary(void) const
Check if variant Binary is selected.
bool IsSlist(void) const
Check if variant Slist is selected.
TValue & SetValue(void)
Assign a value to Value data member.
CPC_InfoData_Base(const CPC_InfoData_Base &)
TFvec & SetFvec(void)
Select the variant.
TBitlist & SetBitlist(void)
Select the variant.
const TSlist & GetSlist(void) const
Get the variant data.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TIvec & SetIvec(void)
Select the variant.
TBvec & SetBvec(void)
Select the variant.
const TValue & GetValue(void) const
Get the Value member data.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
const TBinary & GetBinary(void) const
Get the variant data.
TFval GetFval(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.
NCBI_NS_NCBI::CUnionBuffer< TIvec > m_Ivec
NCBI_NS_NCBI::CUnionBuffer< TBvec > m_Bvec
NCBI_NS_NCBI::CSerialObject * m_object
bool IsBitlist(void) const
Check if variant Bitlist is selected.
TBval & SetBval(void)
Select the variant.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsBvec(void) const
Check if variant Bvec is selected.
bool IsFval(void) const
Check if variant Fval is selected.
void ResetUrn(void)
Reset Urn data member.
@ e_Bval
Boolean or Binary.
@ e_Slist
List of Strings.
@ e_Fval
Float or Double.
@ e_Ival
Integer (signed or unsigned)
const GenericPointer< typename T::ValueType > T2 value
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4