ostream << (valueName.empty() ? valueNum : valueName);
108 switch(primitiveValueType) {
136 size_tdigits = DBL_DIG;
147 while(
buffer[width-1] ==
'0') {
150 if(
buffer[width-1] ==
'.') {
156width = sprintf(
buffer,
"%.*g", (
int)digits,
data);
191string::const_iterator it;
194 for(it =
str.begin(); it <
str.end(); ++it) {
224 if((
unsigned int)c < 0x20) {
229 unsignedhi = ch >> 4;
230 unsignedlo = ch & 0xF;
231 if(hi)
buffer[
i++] =
"0123456789abcdef"[hi];
232 buffer[
i++] =
"0123456789abcdef"[lo];
252 static const char HEX[] =
"0123456789ABCDEF";
256vector<char>::const_iterator it;
257 for(it =
value.begin(); it <
value.end(); ++it) {
static const CTextStyle & GetStyle(Element element)
virtual void x_RenderXml(CStyledTextOStream &ostream, CTextPanelContext *context) const
void x_WriteOctetString(CStyledTextOStream &ostream, const vector< char > &value) const
void x_WriteString(CStyledTextOStream &ostream, const string &str) const
CConstObjectInfo m_ObjectInfo
static const char * str(char *buf, int n)
#define finite
Define value of finite (Is Finite).
const string & FindName(TEnumValueType value, bool allowBadValue) const
Find name of the enum by its numeric value.
bool IsInteger(void) const
Check whether the type is defined as INTEGER in ASN.1 spec.
EPrimitiveValueType
Primitive value type.
static const TObjectType * SafeCast(TTypeInfo type)
@ ePrimitiveValueSpecial
null, void
@ ePrimitiveValueOctetString
vector<(signed|unsigned)? char>
@ ePrimitiveValueString
string|char*|const char*
@ ePrimitiveValueInteger
(signed|unsigned) (char|short|int|long)
@ ePrimitiveValueBool
bool
@ ePrimitiveValueEnum
enum
@ ePrimitiveValueReal
float|double
CConstObjectInfo GetPointedObject(void) const
Get data and type information of object to which this type refers.
bool GetPrimitiveValueBool(void) const
Get boolean data.
void GetPrimitiveValueOctetString(vector< char > &value) const
Get octet string data.
const CPrimitiveTypeInfo * GetPrimitiveTypeInfo(void) const
ETypeFamily GetTypeFamily(void) const
Get data type family.
void GetPrimitiveValueString(string &value) const
Get string data.
double GetPrimitiveValueDouble(void) const
Get data as double.
Int4 GetPrimitiveValueInt4(void) const
Get data as Int4.
Int8 GetPrimitiveValueInt8(void) const
Get data as Int8.
bool IsPrimitiveValueSigned(void) const
Is primitive value signed.
uint8_t Uint1
1-byte (8-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
NCBI_NS_STD::string::size_type SIZE_TYPE
static string Int8ToString(Int8 value, TNumToStringFlags flags=0, int base=10)
Convert Int8 to string.
static string DoubleToString(double value, int precision=-1, TNumToStringFlags flags=0)
Convert double to string.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
static string UInt8ToString(Uint8 value, TNumToStringFlags flags=0, int base=10)
Convert UInt8 to string.
EPrimitiveValueType GetPrimitiveValueType(void) const
const CEnumeratedTypeValues & Values(void) const
unsigned int
A callback function used to compare two keys in a database.
const GenericPointer< typename T::ValueType > T2 value
Floating-point support routines.
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