59 "CSeqTable_single_data::GetValue("<<
type_name<<
"&): "
60 "value is too big for requested type: "<<
value);
67 "CSeqTable_single_data::GetValue("<<
type_name<<
"&): "
69 " value cannot be converted to requested type");
73 template<
class DstInt,
class SrcInt>
78 if ( SrcInt(v) !=
value ) {
87 static const char*
const type_name =
"bool";
106 static const char*
const type_name =
"Int1";
125 static const char*
const type_name =
"Int2";
144 static const char*
const type_name =
"int";
static bool sx_DownCast(DstInt &v, const SrcInt &value, const char *type_name)
User-defined methods of the data storage class.
Seq-loc and seq-align mapper exceptions.
static void ThrowOverflowError(Int8 value, const char *type_name)
void GetValue(bool &v) const
~CSeqTable_single_data(void)
void ThrowConversionError(const char *type_name) const
#define NCBI_THROW_FMT(exception_class, err_code, message)
The same as NCBI_THROW but with message processed as output to ostream.
int16_t Int2
2-byte (16-bit) signed integer
int64_t Int8
8-byte (64-bit) signed integer
int8_t Int1
1-byte (8-bit) signed integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
E_Choice Which(void) const
Which variant is currently selected.
const TString & GetString(void) const
Get the variant data.
bool IsBytes(void) const
Check if variant Bytes is selected.
TInt8 GetInt8(void) const
Get the variant data.
TBit GetBit(void) const
Get the variant data.
bool IsString(void) const
Check if variant String is selected.
const TBytes & GetBytes(void) const
Get the variant data.
TReal GetReal(void) const
Get the variant data.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
TInt GetInt(void) const
Get the variant data.
const GenericPointer< typename T::ValueType > T2 value
static const char * type_name(CS_INT value)