61 m_object->RemoveReference();
73 (m_object =
new(pool) eutils::CText())->AddReference();
92 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
97 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
108 CheckSelected(e_Text);
109 return *
static_cast<const TText*
>(m_object);
115 return *
static_cast<TText*
>(m_object);
121 if ( m_choice != e_Text || m_object != ptr ) {
123 (m_object = ptr)->AddReference();
135 SET_NAMESPACE(
"http://www.ncbi.nlm.nih.gov")->SetNsQualified(
true);
138 info->CodeVersion(22400);
139 info->DataSpec(ncbi::EDataSpec::eXSD);
165 SET_NAMESPACE(
"http://www.ncbi.nlm.nih.gov")->SetNsQualified(
true);
168 info->CodeVersion(22400);
169 info->DataSpec(ncbi::EDataSpec::eXSD);
#define BEGIN_eutils_SCOPE
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_IMPLICIT_CLASS_INFO("VolumeTitle", CVolumeTitle)
BEGIN_NAMED_CHOICE_INFO("", CVolumeTitle_Base::C_E)
#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_NAMESPACE(name)
#define SET_INTERNAL_NAME(OwnerName, MemberName)
#define SET_CHOICE_MODULE(ModuleName)
#define ADD_NAMED_BUF_CHOICE_VARIANT(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
void Reset(void)
Reset data member.
TText & SetText(void)
Select the variant.
virtual ~CVolumeTitle_Base(void)
const TText & GetText(void) const
Get the variant data.
void DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool *pool=0)
void ResetSelection(void)
Reset the selection (set it to e_not_set).
T_CharData & Set_CharData(void)
Select the variant.
static const char *const sm_SelectionNames[]
void Reset(void)
Reset the whole object.
static NCBI_NS_STD::string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E > > m_data
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
NCBI_NS_STD::string T_CharData
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value