37 #ifndef OBJECTS_GENERAL_OBJECT_ID_HPP
38 #define OBJECTS_GENERAL_OBJECT_ID_HPP
86 bool IsId8(
void)
const;
87 TId8 GetId8(
void)
const;
91 bool IsGi(
void)
const;
92 TGi GetGi(
void)
const;
107 ostream& AsString(ostream &s)
const;
199 #ifdef NCBI_STRICT_GI
236 CObject_id& GetSharedObject_id(
const string&
id);
245 GetSharedObject_id(oid.
GetStr()):
246 GetSharedObject_id(oid.
GetId());
Object-id can tag or name anything.
bool operator<(const CObject_id &id2) const
E_Choice GetIdType(TId8 &value) const
int Compare(const CObject_id &oid2) const
CObject_id(const CObject_id &)
Read hook for data member of a containing object (eg, SEQUENCE)
map< int, CRef< CObject_id > > TMapByInt
CObject_id & GetSharedObject_id(const CObject_id &oid)
Returns shared version of argument Object-id.
map< string, CRef< CObject_id > > TMapByStr
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
bool operator<(const CEquivRange &A, const CEquivRange &B)
static const char * str(char *buf, int n)
#define GI_FROM(T, value)
sequence::ECompare Compare(const CSeq_loc &loc1, const CSeq_loc &loc2, CScope *scope)
Returns the sequence::ECompare containment relationship between CSeq_locs.
#define NCBI_WARN_UNUSED_RESULT
int64_t Int8
8-byte (64-bit) signed integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GENERAL_EXPORT
bool IsStr(void) const
Check if variant Str is selected.
CObject_id_Base & operator=(const CObject_id_Base &)
bool IsId(void) const
Check if variant Id is selected.
const TStr & GetStr(void) const
Get the variant data.
TId & SetId(void)
Select the variant.
TId GetId(void) const
Get the variant data.
const GenericPointer< typename T::ValueType > T2 value
std::istream & in(std::istream &in_, double &x_)