63 m_object->RemoveReference();
75 (m_object =
new(pool) linkout::CFileName())->AddReference();
96 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
101 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
106 CheckSelected(e_FileName);
107 return *
static_cast<const TFileName*
>(m_object);
113 return *
static_cast<TFileName*
>(m_object);
119 if ( m_choice != e_FileName || m_object != ptr ) {
121 (m_object = ptr)->AddReference();
122 m_choice = e_FileName;
148 info->CodeVersion(22400);
149 info->DataSpec(ncbi::EDataSpec::eDTD);
177 info->CodeVersion(22400);
178 info->DataSpec(ncbi::EDataSpec::eDTD);
#define BEGIN_linkout_SCOPE
#define END_linkout_SCOPE
User-defined methods of the data storage class.
All Entrez databases may be configured to include LinkOut.
CObjectList Data structure representing a list of CObjects with associated Scopes and other optional ...
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
#define MEMBER_PTR(MemberName)
#define ADD_NAMED_MEMBER(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
#define ADD_NAMED_REF_CHOICE_VARIANT(MemberAlias, MemberName, ClassName)
#define SET_CLASS_MODULE(ModuleName)
#define SET_INTERNAL_NAME(OwnerName, MemberName)
#define SET_CHOICE_MODULE(ModuleName)
#define ADD_NAMED_BUF_CHOICE_VARIANT(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
virtual void Reset(void)
Reset the whole object.
virtual ~CObjectList_Base(void)
TObjId & SetObjId(void)
Select the variant.
static const char *const sm_SelectionNames[]
void ResetSelection(void)
Reset the selection (set it to e_not_set).
TQuery & SetQuery(void)
Select the variant.
NCBI_NS_STD::string TQuery
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_Data > > m_data
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool *pool=0)
const TFileName & GetFileName(void) const
Get the variant data.
TFileName & SetFileName(void)
Select the variant.
static NCBI_NS_STD::string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
NCBI_NS_STD::string TObjId
void Reset(void)
Reset the whole object.
@ e_not_set
No variant selected.
User-defined methods of the data storage class.
BEGIN_NAMED_CHOICE_INFO("", CObjectList_Base::C_Data)
BEGIN_NAMED_BASE_IMPLICIT_CLASS_INFO("ObjectList", CObjectList)
const GenericPointer< typename T::ValueType > T2 value