NCBI C++ ToolKit
|
Search Toolkit Book for CSectionTitle_Base::C_E_SectionTitle
#include <objtools/eutils/efetch/SectionTitle_.hpp>
Public Types | |
enum | E_Choice { e_not_set = 0 , e__CharData , e_Text } |
Choice variants. More... | |
enum | E_ChoiceStopper { e_MaxChoice = 3 } |
Maximum+1 value of the choice variant enumerator. More... | |
typedef CText | C_Text |
typedef NCBI_NS_STD::string | T_CharData |
typedef C_Text | TText |
Public Member Functions | |
C_E_SectionTitle (void) | |
~C_E_SectionTitle (void) | |
DECLARE_INTERNAL_TYPE_INFO () | |
void | Reset (void) |
Reset the whole object. More... | |
void | ResetSelection (void) |
Reset the selection (set it to e_not_set). More... | |
E_Choice | Which (void) const |
Which variant is currently selected. More... | |
void | CheckSelected (E_Choice index) const |
Verify selection, throw exception if it differs from the expected. More... | |
void | ThrowInvalidSelection (E_Choice index) const |
Throw 'InvalidSelection' exception. More... | |
void | Select (E_Choice index, NCBI_NS_NCBI::EResetVariant reset=NCBI_NS_NCBI::eDoResetVariant) |
Select the requested variant if needed. More... | |
void | Select (E_Choice index, NCBI_NS_NCBI::EResetVariant reset, NCBI_NS_NCBI::CObjectMemoryPool *pool) |
Select the requested variant if needed, allocating CObject variants from memory pool. More... | |
bool | Is_CharData (void) const |
Check if variant _CharData is selected. More... | |
const T_CharData & | Get_CharData (void) const |
Get the variant data. More... | |
T_CharData & | Set_CharData (void) |
Select the variant. More... | |
void | Set_CharData (const T_CharData &value) |
Select the variant and set its data. More... | |
bool | IsText (void) const |
Check if variant Text is selected. More... | |
const TText & | GetText (void) const |
Get the variant data. More... | |
TText & | SetText (void) |
Select the variant. More... | |
void | SetText (TText &value) |
Select the variant and set its data. More... | |
Static Public Member Functions | |
static NCBI_NS_STD::string | SelectionName (E_Choice index) |
Retrieve selection name (for diagnostic purposes). More... | |
Private Types | |
typedef NCBI_NS_NCBI::CSerialObject | Tparent |
Private Member Functions | |
C_E_SectionTitle (const C_E_SectionTitle &) | |
C_E_SectionTitle & | operator= (const C_E_SectionTitle &) |
void | DoSelect (E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool *pool=0) |
Private Attributes | |
E_Choice | m_choice |
union { | |
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > CSectionTitle_Base::C_E_SectionTitle::m_string | |
NCBI_NS_NCBI::CSerialObject * CSectionTitle_Base::C_E_SectionTitle::m_object | |
}; | |
Static Private Attributes | |
static const char *const | sm_SelectionNames [] |
Definition at line 252 of file SectionTitle_.hpp.