75 for ( std::vector< std::vector< char >* >::iterator listIter1 = (*m_Oss).begin(); listIter1 != (*m_Oss).end(); ++listIter1 ) {
88 m_string_utf8.Destruct();
91 m_object->RemoveReference();
115 (m_object =
new(pool) ncbi::objects::CUser_object())->
AddReference();
130 m_Fields.Construct();
133 m_Objects.Construct();
136 m_string_utf8.Construct();
162 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
167 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
173 *m_string_utf8 =
value;
178 CheckSelected(e_Object);
179 return *
static_cast<const TObject*
>(m_object);
185 return *
static_cast<TObject*
>(m_object);
191 if ( m_choice != e_Object || m_object != ptr ) {
217 info->CodeVersion(22400);
218 info->DataSpec(ncbi::EDataSpec::eASN);
277 info->CodeVersion(22400);
278 info->DataSpec(ncbi::EDataSpec::eASN);
BEGIN_NAMED_BASE_CLASS_INFO("User-field", CUser_field)
BEGIN_NAMED_CHOICE_INFO("", CUser_field_Base::C_Data)
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
#define MEMBER_PTR(MemberName)
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
#define ADD_NAMED_REF_CHOICE_VARIANT(MemberAlias, MemberName, ClassName)
#define ADD_NAMED_STD_MEMBER(MemberAlias, MemberName)
#define SET_CLASS_MODULE(ModuleName)
#define ADD_NAMED_STD_CHOICE_VARIANT(MemberAlias, MemberName)
#define SET_INTERNAL_NAME(OwnerName, MemberName)
#define SET_CHOICE_MODULE(ModuleName)
#define ADD_NAMED_BUF_CHOICE_VARIANT(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
void AddReference(void) const
Add reference to object.
void Reset(void)
Reset reference 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.
void Reset(void)
Reset the whole object.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TObject & SetObject(void)
Select the variant.
virtual void Reset(void)
Reset the whole object.
void ResetLabel(void)
Reset Label data member.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
static const char *const sm_SelectionNames[]
virtual ~CUser_field_Base(void)
TData & SetData(void)
Assign a value to Data data member.
TStr & SetStr(void)
Select the variant.
TLabel & SetLabel(void)
Assign a value to Label data member.
const TObject & GetObject(void) const
Get the variant data.
void ResetNum(void)
Reset Num data member.
void ResetData(void)
Reset Data data member.
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value