(
const string& v);
110 explicit CVariant(
const char* s);
126 static CVariantDouble (
double*p);
130 static CVariantLongChar (
const char*p,
size_t len= 0);
133 static CVariantVarChar (
const char*p,
size_t len= 0);
136 static CVariantVarCharMax (
const char*p,
size_t len= 0);
142 static CVariantLongBinary (
size_tmaxSize,
const void*p,
size_t len);
143 static CVariantVarBinary (
const void*p,
size_t len);
144 static CVariantVarBinaryMax (
const void*p,
size_t len);
175 Int8GetInt8(
void)
const;
176 stringGetString(
void)
const;
177 Int4GetInt4(
void)
const;
178 Int2GetInt2(
void)
const;
179 Uint1GetByte(
void)
const;
180 floatGetFloat(
void)
const;
181 doubleGetDouble(
void)
const;
182 boolGetBit(
void)
const;
183 stringGetNumeric(
void)
const;
184 const CTime& GetCTime(
void)
const;
187 stringAsNotNullString(
const string& v)
const;
190 boolIsNull()
const;
221 size_tGetBlobSize()
const;
222 size_t Read(
void*
buf,
size_t len)
const;
223 size_tAppend(
const void*
buf,
size_t len);
224 size_tAppend(
const string&
str);
230 boolMoveTo(
size_tpos)
const;
238{
returnGetBlobDescriptor(); }
240{
returnReleaseBlobDescriptor(); }
244 EBulkEncGetBulkInsertionEnc(
void)
const;
245 voidSetBulkInsertionEnc(
EBulkEnce);
256 voidx_Verify_AssignType(
EDB_Typedb_type,
const char* cxx_type)
const;
257 voidx_Inapplicable_Method(
const char* method)
const;
260 mutableunique_ptr<I_BlobDescriptor>
m_descr;
305 "No blob descriptor available.");
321 "Cannot assign type '"+
string(cxx_type) +
"' to type '" 330 "CVariant::"+
string(method) +
" is not applicable to type '" 350 returnv1 <
v2|| v1 ==
v2;
356 return v2< v1 || v1 ==
v2;
static const char * str(char *buf, int n)
@ eRetriable_No
It makes no sense to retry the action.
virtual EDB_Type GetType() const =0
static const char * GetTypeName(EDB_Type db_type, bool throw_on_unknown=true)
I_BlobDescriptor * ReleaseITDescriptor(void) const
unique_ptr< I_BlobDescriptor > m_descr
bool operator==(const CVariant &v1, const CVariant &v2)
bool operator!=(const CVariant &v1, const CVariant &v2)
I_BlobDescriptor & GetBlobDescriptor(void) const
bool operator>(const CVariant &v1, const CVariant &v2)
CDB_Object * GetData() const
void x_Inapplicable_Method(const char *method) const
void SetITDescriptor(I_BlobDescriptor *descr)
bool operator>=(const CVariant &v1, const CVariant &v2)
NCBI_EXCEPTION_DEFAULT(CVariantException, CException)
void x_Verify_AssignType(EDB_Type db_type, const char *cxx_type) const
void SetBlobDescriptor(I_BlobDescriptor *descr)
I_BlobDescriptor & GetITDescriptor(void) const
CVariant(const class CTime &v, EDateTimeFormat fmt)
bool operator<=(const CVariant &v1, const CVariant &v2)
I_BlobDescriptor * ReleaseBlobDescriptor(void) const
bool operator<(const CVariant &v1, const CVariant &v2)
class CDB_Object * m_data
virtual const char * GetType(void) const
Get class name as a string.
CException & operator=(const CException &)
Private assignment operator to prohibit assignment.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
#define EXCEPTION_VIRTUAL_BASE
Do not use virtual base classes in exception declaration at all, because in this case derived class s...
void Read(CObjectIStream &in, TObjectPtr object, const CTypeRef &type)
uint8_t Uint1
1-byte (8-bit) unsigned integer
int16_t Int2
2-byte (16-bit) signed integer
int32_t Int4
4-byte (32-bit) signed integer
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.
basic_string< TCharUCS2 > TStringUCS2
Type for string in UCS-2 encoding.
CTime Truncate(const CTime &t)
#define NCBI_DBAPI_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
static PyObject * Binary(PyObject *self, PyObject *args)
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Defines: CTimeFormat - storage class for time format.
Defines Limits for the types used in NCBI C/C++ toolkit.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4