NCBI C++ ToolKit
|
Search Toolkit Book for CNativeReference_Base::C_E_NativeReference::C_NH
#include <build-system/project_tree_builder/msbuild/NativeReference_.hpp>
Public Types | |
enum | E_Choice { e_not_set = 0 , e_Name , e_HintPath } |
Choice variants. More... | |
enum | E_ChoiceStopper { e_MaxChoice = 3 } |
Maximum+1 value of the choice variant enumerator. More... | |
typedef NCBI_NS_STD::string | TName |
typedef NCBI_NS_STD::string | THintPath |
Public Member Functions | |
C_NH (void) | |
~C_NH (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 | IsName (void) const |
Check if variant Name is selected. More... | |
const TName & | GetName (void) const |
Get the variant data. More... | |
TName & | SetName (void) |
Select the variant. More... | |
void | SetName (const TName &value) |
Select the variant and set its data. More... | |
bool | IsHintPath (void) const |
Check if variant HintPath is selected. More... | |
const THintPath & | GetHintPath (void) const |
Get the variant data. More... | |
THintPath & | SetHintPath (void) |
Select the variant. More... | |
void | SetHintPath (const THintPath &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_NH (const C_NH &) | |
C_NH & | operator= (const C_NH &) |
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 > CNativeReference_Base::C_E_NativeReference::C_NH::m_string | |
void * CNativeReference_Base::C_E_NativeReference::C_NH::m_dummy_pointer_for_alignment | |
}; | |
Static Private Attributes | |
static const char *const | sm_SelectionNames [] |
C_NH –.
Definition at line 357 of file NativeReference_.hpp.