72 case e_Get_blob_seq_ids:
75 case e_Get_split_info:
77 m_object->RemoveReference();
89 (m_object =
new(pool) ncbi::objects::CID2_Reply_Get_Package())->
AddReference();
92 (m_object =
new(pool) ncbi::objects::CID2_Reply_Get_Seq_id())->
AddReference();
95 (m_object =
new(pool) ncbi::objects::CID2_Reply_Get_Blob_Id())->
AddReference();
97 case e_Get_blob_seq_ids:
98 (m_object =
new(pool) ncbi::objects::CID2_Reply_Get_Blob_Seq_ids())->
AddReference();
101 (m_object =
new(pool) ncbi::objects::CID2_Reply_Get_Blob())->
AddReference();
104 (m_object =
new(pool) ncbi::objects::CID2_Reply_ReGet_Blob())->
AddReference();
106 case e_Get_split_info:
107 (m_object =
new(pool) ncbi::objects::CID2S_Reply_Get_Split_Info())->
AddReference();
110 (m_object =
new(pool) ncbi::objects::CID2S_Reply_Get_Chunk())->
AddReference();
134 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
139 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
144 CheckSelected(e_Get_package);
157 if ( m_choice != e_Get_package || m_object != ptr ) {
160 m_choice = e_Get_package;
166 CheckSelected(e_Get_seq_id);
179 if ( m_choice != e_Get_seq_id || m_object != ptr ) {
182 m_choice = e_Get_seq_id;
188 CheckSelected(e_Get_blob_id);
201 if ( m_choice != e_Get_blob_id || m_object != ptr ) {
204 m_choice = e_Get_blob_id;
210 CheckSelected(e_Get_blob_seq_ids);
223 if ( m_choice != e_Get_blob_seq_ids || m_object != ptr ) {
226 m_choice = e_Get_blob_seq_ids;
232 CheckSelected(e_Get_blob);
233 return *
static_cast<const TGet_blob*
>(m_object);
239 return *
static_cast<TGet_blob*
>(m_object);
245 if ( m_choice != e_Get_blob || m_object != ptr ) {
248 m_choice = e_Get_blob;
254 CheckSelected(e_Reget_blob);
267 if ( m_choice != e_Reget_blob || m_object != ptr ) {
270 m_choice = e_Reget_blob;
276 CheckSelected(e_Get_split_info);
289 if ( m_choice != e_Get_split_info || m_object != ptr ) {
292 m_choice = e_Get_split_info;
298 CheckSelected(e_Get_chunk);
299 return *
static_cast<const TGet_chunk*
>(m_object);
311 if ( m_choice != e_Get_chunk || m_object != ptr ) {
314 m_choice = e_Get_chunk;
335 info->CodeVersion(22400);
336 info->DataSpec(ncbi::EDataSpec::eASN);
420 info->CodeVersion(22400);
421 info->DataSpec(ncbi::EDataSpec::eASN);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
BEGIN_NAMED_ENUM_IN_INFO("", CID2_Reply_Base::, EDiscard, false)
BEGIN_NAMED_CHOICE_INFO("", CID2_Reply_Base::C_Reply)
BEGIN_NAMED_BASE_CLASS_INFO("ID2-Reply", CID2_Reply)
CID2S_Reply_Get_Split_Info –.
reply data moved at the end to make it easier to construct the reply data manually from precalculated...
********************************************************************* reply types *******************...
CID2_Reply_Get_Blob_Id –.
CID2_Reply_Get_Blob_Seq_ids –.
CID2_Reply_Get_Package –.
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
#define MEMBER_PTR(MemberName)
#define SET_ENUM_INTERNAL_NAME(OwnerName, MemberName)
#define ADD_NAMED_MEMBER(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
#define ADD_NAMED_NULL_MEMBER(MemberAlias, TypeMacro, TypeMacroArgs)
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
#define SET_ENUM_MODULE(ModuleName)
#define ADD_NAMED_REF_CHOICE_VARIANT(MemberAlias, MemberName, ClassName)
#define ADD_NAMED_STD_MEMBER(MemberAlias, MemberName)
#define SET_CLASS_MODULE(ModuleName)
#define ADD_NAMED_ENUM_MEMBER(MemberAlias, MemberName, EnumName)
#define ADD_ENUM_VALUE(EnumValueName, EnumValueValue)
#define SET_INTERNAL_NAME(OwnerName, MemberName)
#define SET_CHOICE_MODULE(ModuleName)
#define ADD_NAMED_NULL_CHOICE_VARIANT(MemberAlias, TypeMacro, TypeMacroArgs)
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.
const TGet_split_info & GetGet_split_info(void) const
Get the variant data.
TGet_seq_id & SetGet_seq_id(void)
Select the variant.
void ResetSerial_number(void)
Reset Serial_number data member.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TParams & SetParams(void)
Assign a value to Params data member.
void ResetEnd_of_reply(void)
Reset End_of_reply data member.
TGet_blob_id & SetGet_blob_id(void)
Select the variant.
TReget_blob & SetReget_blob(void)
Select the variant.
virtual void Reset(void)
Reset the whole object.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
const TGet_blob_id & GetGet_blob_id(void) const
Get the variant data.
TGet_chunk & SetGet_chunk(void)
Select the variant.
void Reset(void)
Reset the whole object.
void ResetParams(void)
Reset Params data member.
const TGet_blob & GetGet_blob(void) const
Get the variant data.
void ResetReply(void)
Reset Reply data member.
EDiscard
additional error flag if the reply is broken in the middle of transfer.
TGet_blob_seq_ids & SetGet_blob_seq_ids(void)
Select the variant.
TReply & SetReply(void)
Assign a value to Reply data member.
const TGet_blob_seq_ids & GetGet_blob_seq_ids(void) const
Get the variant data.
list< CRef< CID2_Error > > m_Error
void ResetSelection(void)
Reset the selection (set it to e_not_set).
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
const TReget_blob & GetReget_blob(void) const
Get the variant data.
const TGet_package & GetGet_package(void) const
Get the variant data.
const TGet_chunk & GetGet_chunk(void) const
Get the variant data.
const TGet_seq_id & GetGet_seq_id(void) const
Get the variant data.
TGet_package & SetGet_package(void)
Select the variant.
void ResetError(void)
Reset Error data member.
void ResetDiscard(void)
Reset Discard data member.
TGet_blob & SetGet_blob(void)
Select the variant.
static const char *const sm_SelectionNames[]
virtual ~CID2_Reply_Base(void)
TGet_split_info & SetGet_split_info(void)
Select the variant.
@ e_not_set
No variant selected.
@ eDiscard_nothing
all data in embedded ID2-Reply-Data is correct, but is incomplete
@ eDiscard_last_octet_string
all data in embedded ID2-Reply-Data except last OCTET STRING is correct
@ eDiscard_reply
whole reply should be discarded
const GenericPointer< typename T::ValueType > T2 value