68 m_object->RemoveReference();
80 (m_object =
new(pool) ncbi::objects::CCit_jour())->
AddReference();
83 (m_object =
new(pool) ncbi::objects::CCit_book())->
AddReference();
86 (m_object =
new(pool) ncbi::objects::CCit_proc())->
AddReference();
103 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
108 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
113 CheckSelected(e_Journal);
114 return *
static_cast<const TJournal*
>(m_object);
120 return *
static_cast<TJournal*
>(m_object);
126 if ( m_choice != e_Journal || m_object != ptr ) {
129 m_choice = e_Journal;
135 CheckSelected(e_Book);
136 return *
static_cast<const TBook*
>(m_object);
142 return *
static_cast<TBook*
>(m_object);
148 if ( m_choice != e_Book || m_object != ptr ) {
157 CheckSelected(e_Proc);
158 return *
static_cast<const TProc*
>(m_object);
164 return *
static_cast<TProc*
>(m_object);
170 if ( m_choice != e_Proc || m_object != ptr ) {
187 info->CodeVersion(22301);
188 info->DataSpec(ncbi::EDataSpec::eASN);
286 info->CodeVersion(22301);
287 info->DataSpec(ncbi::EDataSpec::eASN);
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("Cit-art", CCit_art)
BEGIN_NAMED_CHOICE_INFO("", CCit_art_Base::C_From)
@Auth_list.hpp User-defined methods of the data storage class.
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
#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)
void AddReference(void) const
Add reference to object.
bool IsAllocatedInPool(void) const THROWS_NONE
Check if object is allocated in memory pool (not system heap)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TAuthors & SetAuthors(void)
Assign a value to Authors data member.
TFrom & SetFrom(void)
Assign a value to From data member.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
const TJournal & GetJournal(void) const
Get the variant data.
virtual ~CCit_art_Base(void)
void ResetSelection(void)
Reset the selection (set it to e_not_set).
void ResetTitle(void)
Reset Title data member.
virtual void Reset(void)
Reset the whole object.
void ResetFrom(void)
Reset From data member.
TTitle & SetTitle(void)
Assign a value to Title data member.
void Reset(void)
Reset the whole object.
TBook & SetBook(void)
Select the variant.
const TProc & GetProc(void) const
Get the variant data.
static const char *const sm_SelectionNames[]
void ResetIds(void)
Reset Ids data member.
void ResetAuthors(void)
Reset Authors data member.
TProc & SetProc(void)
Select the variant.
TIds & SetIds(void)
Assign a value to Ids data member.
TJournal & SetJournal(void)
Select the variant.
CRef< TAuthors > m_Authors
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
const TBook & GetBook(void) const
Get the variant data.
@ e_not_set
No variant selected.