41 #ifndef ALGO_MS_FORMATS_PEPXML_SEARCH_DATABASE_BASE_HPP
42 #define ALGO_MS_FORMATS_PEPXML_SEARCH_DATABASE_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
102 eAttlist_type_AA = 1,
127 e_database_release_date,
128 e_database_release_identifier,
129 e_size_in_db_entries,
145 bool IsSetLocal_path(
void)
const;
152 bool CanGetLocal_path(
void)
const;
155 void ResetLocal_path(
void);
183 bool IsSetURL(
void)
const;
190 bool CanGetURL(
void)
const;
199 const TURL& GetURL(
void)
const;
221 bool IsSetDatabase_name(
void)
const;
228 bool CanGetDatabase_name(
void)
const;
231 void ResetDatabase_name(
void);
259 bool IsSetOrig_database_url(
void)
const;
266 bool CanGetOrig_database_url(
void)
const;
269 void ResetOrig_database_url(
void);
297 bool IsSetDatabase_release_date(
void)
const;
304 bool CanGetDatabase_release_date(
void)
const;
307 void ResetDatabase_release_date(
void);
335 bool IsSetDatabase_release_identifier(
void)
const;
342 bool CanGetDatabase_release_identifier(
void)
const;
345 void ResetDatabase_release_identifier(
void);
373 bool IsSetSize_in_db_entries(
void)
const;
380 bool CanGetSize_in_db_entries(
void)
const;
383 void ResetSize_in_db_entries(
void);
410 bool IsSetSize_of_residues(
void)
const;
417 bool CanGetSize_of_residues(
void)
const;
420 void ResetSize_of_residues(
void);
448 bool IsSetType(
void)
const;
455 bool CanGetType(
void)
const;
458 void ResetType(
void);
464 TType GetType(
void)
const;
476 TType& SetType(
void);
520 bool IsSetAttlist(
void)
const;
527 bool CanGetAttlist(
void)
const;
530 void ResetAttlist(
void);
536 const TAttlist& GetAttlist(
void)
const;
556 bool IsSetSearch_database(
void)
const;
562 bool CanGetSearch_database(
void)
const;
565 void ResetSearch_database(
void);
568 void SetSearch_database(
void);
571 virtual void Reset(
void);
602 return IsSetLocal_path();
608 if (!CanGetLocal_path()) {
617 m_Local_path =
value;
624 m_Local_path = std::forward<CSearch_database_Base::C_Attlist::TLocal_path>(
value);
632 if (!IsSetLocal_path()) {
671 m_URL = std::forward<CSearch_database_Base::C_Attlist::TURL>(
value);
696 return IsSetDatabase_name();
702 if (!CanGetDatabase_name()) {
705 return m_Database_name;
711 m_Database_name =
value;
718 m_Database_name = std::forward<CSearch_database_Base::C_Attlist::TDatabase_name>(
value);
726 if (!IsSetDatabase_name()) {
731 return m_Database_name;
743 return IsSetOrig_database_url();
749 if (!CanGetOrig_database_url()) {
752 return m_Orig_database_url;
758 m_Orig_database_url =
value;
765 m_Orig_database_url = std::forward<CSearch_database_Base::C_Attlist::TOrig_database_url>(
value);
773 if (!IsSetOrig_database_url()) {
778 return m_Orig_database_url;
790 return IsSetDatabase_release_date();
796 if (!CanGetDatabase_release_date()) {
799 return m_Database_release_date;
805 m_Database_release_date =
value;
812 m_Database_release_date = std::forward<CSearch_database_Base::C_Attlist::TDatabase_release_date>(
value);
820 if (!IsSetDatabase_release_date()) {
825 return m_Database_release_date;
837 return IsSetDatabase_release_identifier();
843 if (!CanGetDatabase_release_identifier()) {
846 return m_Database_release_identifier;
852 m_Database_release_identifier =
value;
859 m_Database_release_identifier = std::forward<CSearch_database_Base::C_Attlist::TDatabase_release_identifier>(
value);
867 if (!IsSetDatabase_release_identifier()) {
872 return m_Database_release_identifier;
884 return IsSetSize_in_db_entries();
890 m_Size_in_db_entries = 0;
897 if (!CanGetSize_in_db_entries()) {
900 return m_Size_in_db_entries;
906 m_Size_in_db_entries =
value;
914 if (!IsSetSize_in_db_entries()) {
915 memset(&m_Size_in_db_entries,
UnassignedByte(),
sizeof(m_Size_in_db_entries));
919 return m_Size_in_db_entries;
931 return IsSetSize_of_residues();
937 m_Size_of_residues = 0;
944 if (!CanGetSize_of_residues()) {
947 return m_Size_of_residues;
953 m_Size_of_residues =
value;
961 if (!IsSetSize_of_residues()) {
962 memset(&m_Size_of_residues,
UnassignedByte(),
sizeof(m_Size_of_residues));
966 return m_Size_of_residues;
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
#define ENUM_METHOD_NAME(EnumName)
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.
#define NCBI_PEPXML_EXPORT
TURL & SetURL(void)
Assign a value to URL data member.
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
TSize_of_residues GetSize_of_residues(void) const
Get the Size_of_residues member data.
bool CanGetDatabase_release_identifier(void) const
Check if it is safe to call GetDatabase_release_identifier method.
TSize_of_residues & SetSize_of_residues(void)
Assign a value to Size_of_residues data member.
bool IsSetSize_of_residues(void) const
Check if a value has been assigned to Size_of_residues data member.
bool IsSetSize_in_db_entries(void) const
Check if a value has been assigned to Size_in_db_entries data member.
bool IsSetDatabase_name(void) const
Check if a value has been assigned to Database_name data member.
string TOrig_database_url
TType GetType(void) const
Get the Type member data.
string TDatabase_release_date
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
C_Attlist & operator=(const C_Attlist &)
C_Attlist(const C_Attlist &)
bool IsSetSearch_database(void) const
Check if a value has been assigned to Search_database data member.
void ResetType(void)
Reset Type data member.
string TDatabase_release_identifier
bool CanGetType(void) const
Check if it is safe to call GetType method.
bool CanGetDatabase_release_date(void) const
Check if it is safe to call GetDatabase_release_date method.
TDatabase_release_date & SetDatabase_release_date(void)
Assign a value to Database_release_date data member.
bool IsSetDatabase_release_date(void) const
Check if a value has been assigned to Database_release_date data member.
bool CanGetLocal_path(void) const
Check if it is safe to call GetLocal_path method.
TLocal_path & SetLocal_path(void)
Assign a value to Local_path data member.
const TDatabase_release_identifier & GetDatabase_release_identifier(void) const
Get the Database_release_identifier member data.
TDatabase_name & SetDatabase_name(void)
Assign a value to Database_name data member.
TSize_in_db_entries & SetSize_in_db_entries(void)
Assign a value to Size_in_db_entries data member.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
bool CanGetSearch_database(void) const
Check if value of Search_database member is getatable.
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
bool CanGetOrig_database_url(void) const
Check if it is safe to call GetOrig_database_url method.
bool IsSetURL(void) const
Check if a value has been assigned to URL data member.
TSize_in_db_entries GetSize_in_db_entries(void) const
Get the Size_in_db_entries member data.
bool CanGetDatabase_name(void) const
Check if it is safe to call GetDatabase_name method.
TOrig_database_url & SetOrig_database_url(void)
Assign a value to Orig_database_url data member.
void ResetSearch_database(void)
Reset Search_database data member.
DECLARE_INTERNAL_TYPE_INFO()
string m_Orig_database_url
TDatabase_release_identifier & SetDatabase_release_identifier(void)
Assign a value to Database_release_identifier data member.
string m_Database_release_date
bool CanGetSize_in_db_entries(void) const
Check if it is safe to call GetSize_in_db_entries method.
Tparent::CMemberIndex< E_memberIndex, 10 > TmemberIndex
void ResetSize_of_residues(void)
Reset Size_of_residues data member.
const TDatabase_release_date & GetDatabase_release_date(void) const
Get the Database_release_date member data.
CSearch_database_Base(const CSearch_database_Base &)
bool IsSetType(void) const
Database type (AA=amino acid, NA=nucleic acid) Check if a value has been assigned to Type data member...
bool CanGetSize_of_residues(void) const
Check if it is safe to call GetSize_of_residues method.
bool CanGetURL(void) const
Check if it is safe to call GetURL method.
const TURL & GetURL(void) const
Get the URL member data.
const TDatabase_name & GetDatabase_name(void) const
Get the Database_name member data.
void ResetSize_in_db_entries(void)
Reset Size_in_db_entries data member.
string m_Database_release_identifier
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
bool IsSetOrig_database_url(void) const
Check if a value has been assigned to Orig_database_url data member.
void ResetAttlist(void)
Reset Attlist data member.
const TOrig_database_url & GetOrig_database_url(void) const
Get the Orig_database_url member data.
bool IsSetDatabase_release_identifier(void) const
Check if a value has been assigned to Database_release_identifier data member.
CRef< TAttlist > m_Attlist
CSearch_database_Base & operator=(const CSearch_database_Base &)
const TLocal_path & GetLocal_path(void) const
Get the Local_path member data.
bool IsSetLocal_path(void) const
Check if a value has been assigned to Local_path data member.
DECLARE_INTERNAL_TYPE_INFO()
void SetSearch_database(void)
Set NULL data member (assign 'NULL' value to Search_database data member).
TType & SetType(void)
Assign a value to Type data member.
const GenericPointer< typename T::ValueType > T2 value