41 #ifndef OBJECTS_TRACKMGR_TMGR_CREATEREMOTETRACKREQU_BASE_HPP
42 #define OBJECTS_TRACKMGR_TMGR_CREATEREMOTETRACKREQU_BASE_HPP
57 #ifndef BEGIN_objects_SCOPE
58 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
59 # define END_objects_SCOPE END_SCOPE(objects)
134 void ResetSelection(
void);
140 E_Choice Which(
void)
const;
146 void CheckSelected(E_Choice index)
const;
152 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
160 static string SelectionName(E_Choice index);
191 bool IsHub(
void)
const;
197 const THub& GetHub(
void)
const;
217 bool IsTrack(
void)
const;
223 const TTrack& GetTrack(
void)
const;
246 static const char*
const sm_SelectionNames[];
258 typedef list< CRef< CTMgr_Attribute > >
TAttrs;
288 bool IsSetIdentity(
void)
const;
295 bool CanGetIdentity(
void)
const;
298 void ResetIdentity(
void);
304 const TIdentity& GetIdentity(
void)
const;
326 bool IsSetAssembly_acc(
void)
const;
333 bool CanGetAssembly_acc(
void)
const;
336 void ResetAssembly_acc(
void);
365 bool IsSetUrl(
void)
const;
372 bool CanGetUrl(
void)
const;
381 const TUrl& GetUrl(
void)
const;
403 bool IsSetType(
void)
const;
410 bool CanGetType(
void)
const;
413 void ResetType(
void);
419 TType GetType(
void)
const;
431 TType& SetType(
void);
441 bool IsSetTrack_name(
void)
const;
448 bool CanGetTrack_name(
void)
const;
451 void ResetTrack_name(
void);
480 bool IsSetIndex_url(
void)
const;
487 bool CanGetIndex_url(
void)
const;
490 void ResetIndex_url(
void);
518 bool IsSetTrack_db(
void)
const;
525 bool CanGetTrack_db(
void)
const;
528 void ResetTrack_db(
void);
534 const TTrack_db& GetTrack_db(
void)
const;
556 bool IsSetAttrs(
void)
const;
563 bool CanGetAttrs(
void)
const;
566 void ResetAttrs(
void);
572 const TAttrs& GetAttrs(
void)
const;
588 bool IsSetClient(
void)
const;
595 bool CanGetClient(
void)
const;
598 void ResetClient(
void);
604 const TClient& GetClient(
void)
const;
619 virtual void Reset(
void);
658 if ( m_choice != index )
659 ThrowInvalidSelection(index);
668 DoSelect(index, pool);
675 Select(index, reset, 0);
681 return m_choice == e_Hub;
687 return m_choice == e_Track;
798 m_Url = std::forward<CTMgr_CreateRemoteTrackRequest_Base::TUrl>(
value);
892 m_Track_name = std::forward<CTMgr_CreateRemoteTrackRequest_Base::TTrack_name>(
value);
939 m_Index_url = std::forward<CTMgr_CreateRemoteTrackRequest_Base::TIndex_url>(
value);
User-defined methods of the data storage class.
Base class for all serializable objects.
Hub Track Database specific fields.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
static string UnassignedString(void)
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool IsSetIdentity(void) const
common to hubs and tracks identity of user Check if a value has been assigned to Identity data member...
list< CRef< CTMgr_Attribute > > TAttrs
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetIdentity(void) const
Check if it is safe to call GetIdentity method.
CRef< TIdentity > m_Identity
bool IsSetUrl(void) const
url to track data or hub.txt Check if a value has been assigned to Url data member.
bool IsSetIndex_url(void) const
for tracks only, not hubs Check if a value has been assigned to Index_url data member.
DECLARE_INTERNAL_TYPE_INFO()
bool IsSetAttrs(void) const
future use Check if a value has been assigned to Attrs data member.
const TAssembly_acc & GetAssembly_acc(void) const
Get the Assembly_acc member data.
void ResetType(void)
Reset Type data member.
const TTrack_name & GetTrack_name(void) const
Get the Track_name member data.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
bool IsSetTrack_db(void) const
Check if a value has been assigned to Track_db data member.
bool CanGetIndex_url(void) const
Check if it is safe to call GetIndex_url method.
bool CanGetAssembly_acc(void) const
Check if it is safe to call GetAssembly_acc method.
TIndex_url & SetIndex_url(void)
Assign a value to Index_url data member.
const TAttrs & GetAttrs(void) const
Get the Attrs member data.
TType GetType(void) const
Get the Type member data.
const TUrl & GetUrl(void) const
Get the Url member data.
const TClient & GetClient(void) const
Get the Client member data.
bool IsHub(void) const
Check if variant Hub is selected.
const TIdentity & GetIdentity(void) const
Get the Identity member data.
bool CanGetClient(void) const
Check if it is safe to call GetClient method.
bool IsSetType(void) const
Check if a value has been assigned to Type data member.
bool CanGetType(void) const
Check if it is safe to call GetType method.
E_Choice Which(void) const
Which variant is currently selected.
C_Track_db(const C_Track_db &)
bool CanGetAttrs(void) const
Check if it is safe to call GetAttrs method.
Tparent::CMemberIndex< E_memberIndex, 10 > TmemberIndex
TIdentity & SetIdentity(void)
Assign a value to Identity data member.
TAssembly_acc & SetAssembly_acc(void)
Assign a value to Assembly_acc data member.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
bool CanGetUrl(void) const
Check if it is safe to call GetUrl method.
bool CanGetTrack_db(void) const
Check if it is safe to call GetTrack_db method.
C_Track_db & operator=(const C_Track_db &)
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
void ResetIdentity(void)
Reset Identity data member.
list< CRef< CTMgr_Attribute > > m_Attrs
bool IsSetTrack_name(void) const
track specific, i.e., when type != hub Check if a value has been assigned to Track_name data member.
TType & SetType(void)
Assign a value to Type data member.
bool IsTrack(void) const
Check if variant Track is selected.
bool IsSetClient(void) const
Client information Check if a value has been assigned to Client data member.
bool IsSetAssembly_acc(void) const
NCBI assembly accession Check if a value has been assigned to Assembly_acc data member.
NCBI_NS_NCBI::CSerialObject * m_object
bool CanGetTrack_name(void) const
Check if it is safe to call GetTrack_name method.
const TIndex_url & GetIndex_url(void) const
Get the Index_url member data.
CTMgr_CreateRemoteTrackRequest_Base(const CTMgr_CreateRemoteTrackRequest_Base &)
CRef< TTrack_db > m_Track_db
TUrl & SetUrl(void)
Assign a value to Url data member.
TTrack_name & SetTrack_name(void)
Assign a value to Track_name data member.
const TTrack_db & GetTrack_db(void) const
Get the Track_db member data.
CTMgr_CreateRemoteTrackRequest_Base & operator=(const CTMgr_CreateRemoteTrackRequest_Base &)
TAttrs & SetAttrs(void)
Assign a value to Attrs data member.
unsigned int
A callback function used to compare two keys in a database.
Defines to provide correct exporting from DLLs in Windows.
#define NCBI_TRACKMGR_EXPORT