1 #ifndef CONNECT_SERVICES__COMPOUND_ID__HPP
2 #define CONNECT_SERVICES__COMPOUND_ID__HPP
135 string GetServiceName()
const;
139 string GetDatabaseName()
const;
143 Int8 GetTimestamp()
const;
147 Uint4 GetRandom()
const;
152 Uint4 GetIPv4Address()
const;
165 string GetObjectRef()
const;
169 string GetString()
const;
173 bool GetBoolean()
const;
177 Uint8 GetFlags()
const;
186 Uint8 GetCue()
const;
194 Uint8 GetTaxID()
const;
212 bool IsEmpty()
const;
225 void AppendID(
Uint8 id);
231 void AppendServiceName(
const string& service_name);
234 void AppendDatabaseName(
const string& db_name);
237 void AppendTimestamp(
Int8 timestamp);
241 void AppendCurrentTime();
244 void AppendRandom(
Uint4 random_number);
251 void AppendIPv4Address(
Uint4 ipv4_address);
254 void AppendHost(
const string& host);
257 void AppendPort(
Uint2 port_number);
260 void AppendIPv4SockAddr(
Uint4 ipv4_address,
Uint2 port_number);
263 void AppendObjectRef(
const string& loc);
269 void AppendBoolean(
bool boolean_value);
275 void AppendLabel(
const string&
tag);
281 void AppendSeqID(
const string& seq_id);
284 void AppendTaxID(
Uint8 tax_id);
Exception class for use by CCompoundIDPool, CCompoundID, and CCompoundIDField.
@ eInvalidDumpSyntax
Dump parsing error.
@ eInvalidFormat
Format of the packed ID is not recognized.
@ eIDTooLong
ID exceeds length restrictions.
@ eInvalidType
Field type mismatch.
NCBI_EXCEPTION_DEFAULT(CCompoundIDException, CException)
Compound ID field – an element of the compound ID that has a type and a value.
Pool of recycled CCompoundID objects.
Base64-encoded ID string that contains extractable typed fields.
@ eCIC_NetStorageObjectLocV1
Old version of NetStorageObjectLoc.
@ eCIC_NetStorageObjectLoc
bool GetSeqID(const CRef< CSeq_align > &seqAlign, CRef< CSeq_id > &SeqID, bool getSlave=true)
static char * string_value(const struct col_t *pcol)
virtual const char * GetType(void) const
Get class name as a string.
const string & GetClass(void) const
Get class name used for reporting.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
string GetLabel(const CSeq_id &id)
TSeqPos GetLength(const CSeq_id &id, CScope *scope)
Get sequence length if scope not null, else return max possible TSeqPos.
uint32_t Uint4
4-byte (32-bit) unsigned integer
uint16_t Uint2
2-byte (16-bit) unsigned integer
int64_t Int8
8-byte (64-bit) signed integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned short GetPort() const
Get the listening port number back.
#define NCBI_XCONNECT_EXPORT
Uint4 GetHost(TEndpointKey key)
#define NCBI_NET_COMPONENT(component)
#define NCBI_NET_COMPONENT_IMPL(component)
void Dump(CSplitCacheApp *app, const C &obj, ESerialDataFormat format, const string &key, const string &suffix=kEmptyStr)
static bool GetInteger(wxSpinCtrl *spinctrl, int *value)
string ToString(const wxRect &rc)