A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/uoconv_8cpp_source.html below:

NCBI C++ ToolKit: src/objects/general/uoconv.cpp Source File

44 #if BITSTRING_AS_VECTOR 51 #define NCBI_USE_ERRCODE_X Objects_UOConv 64 #if BITSTRING_AS_VECTOR 67

os[0] =

static_cast<unsigned char>

(bs.size());

70

!it.

AtEnd

(); ++it) {

74

CBitString::statistics

st

;

76

os.resize(

st

.max_serialize_mem);

84 #if BITSTRING_AS_VECTOR 88

!it.

AtEnd

(); ++it) {

92  _ASSERT

( !(

static_cast<unsigned char>

(

count

) & ~os[0]) );

96  bm::deserialize

(bs,

reinterpret_cast<const unsigned char

*

>

(&os[0]));

111

parent.

AddField

(it->GetNamespaceName() +

":"

+ it->GetName(),

120  const string

& name = (*it)->GetLabel().GetStr();

123  if

(colon !=

NPOS

) {

124

obj.

AddAttribute

(name.substr(colon + 1), name.substr(0, colon - 1),

126

}

else if

(name ==

"name"

) {

128

}

else if

(name ==

"value"

) {

130

}

else if

(name ==

"ns_name"

) {

132

}

else if

(name ==

"ns_prefix"

) {

136  "Bad User-object encoding."

);

146  data

.SetBool(

true

);

208

<<

"s_SetPrimitiveData: ignoring ePrimitiveValueOther"

);

249  " ignoring ePrimitiveValueOther"

);

267  data

.SetInts().push_back(1);

280  data

.SetInts().push_back(

static_cast<int> 305  data

.SetOss().push_back(os);

314  data

.SetOss().push_back(os);

323  data

.SetFields().push_back(field);

328  " ignoring ePrimitiveValueOther"

);

371  if

(it.GetAlias().empty() &&

377

(*it, &it.GetAlias()));

399  data

.SetFields().clear();

452  switch

(

data

.Which()) {

461  "Bad User-object encoding."

);

483  " ignoring ePrimitiveValueOther"

);

494  switch

(

data

.Which()) {

498  "Bad User-object encoding."

);

522  "Bad User-object encoding."

);

531  "Bad User-object encoding."

);

557  "Bad User-object encoding."

);

567  "Bad User-object encoding."

);

585  "Bad User-object encoding."

);

610  "Bad User-object encoding."

);

652  if

((*it)->GetLabel().IsStr()) {

653  string

name = (*it)->GetLabel().GetStr();

669  if

(

data

.GetFields().size() == 1) {

Serialization / compression of bvector<>. Set theoretical operations on compressed BLOBs.

Serializable object that stores any combination of parsable data.

Root class for all serialization exceptions.

CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...

void SetNumFromSize(size_t value)

Set num field from a container size Check for overflow and throw CSerialException::eOverflow if the s...

CUser_field & AddField(const string &label, int value)

add fields to the current user field

void resize(size_type new_size)

Change size of the bvector.

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

#define ERR_POST_X(err_subcode, message)

Error posting with default error code and given error subcode.

#define NCBI_THROW(exception_class, err_code, message)

Generic macro to throw an exception, given the exception class, error code and message string.

void Warning(CExceptionArgs_Base &args)

TMemberIndex LastIndex(void) const

const CStringUTF8 & GetValue(void) const

Get normalized value.

size_t TMemberIndex

Type used for indexing class members and choice variants.

const string & GetNamespaceName(void) const

Get namespace name.

const TMemberIndex kInvalidMember

Special value returned from FindMember.

void SetName(const string &name)

Set local name.

void AddAttribute(const string &name, const string &ns_name, const CStringUTF8 &value)

Add attribute.

void SetNamespacePrefix(const string &ns_prefix)

Set namespace prefix.

const string & GetNamespacePrefix(void) const

Get namespace prefix.

void SetNamespaceName(const string &ns_name)

Set namespace name.

const string & GetName(void) const

Get local name.

void SetValue(const CStringUTF8 &value)

Set normalized value.

const vector< CSerialAttribInfoItem > & GetAttributes(void) const

Get object attributes.

@ ePrimitiveValueSpecial

null, void

@ ePrimitiveValueOctetString

vector<(signed|unsigned)? char>

@ ePrimitiveValueString

string|char*|const char*

@ ePrimitiveValueInteger

(signed|unsigned) (char|short|int|long)

@ ePrimitiveValueChar

char

@ ePrimitiveValueBool

bool

@ ePrimitiveValueEnum

enum

@ ePrimitiveValueReal

float|double

@ ePrimitiveValueBitString

const string & GetAlias(void) const

void SetPrimitiveValueChar(char value)

void GetPrimitiveValueBitString(CBitString &value) const

Get bit string data.

TMemberIndex FindVariantIndex(const string &name) const

Find choice variant index by its name.

CConstObjectInfo GetPointedObject(void) const

Get data and type information of object to which this type refers.

CObjectInfo 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.

TObjectPtr GetObjectPtr(void) const

Get pointer to object.

void SetPrimitiveValueString(const string &value)

void SetPrimitiveValueBool(bool value)

Set boolean data.

CChoiceVariant GetCurrentChoiceVariant(void) const

Get data and type information of selected choice variant.

CChoiceVariant GetCurrentChoiceVariant(void) const

Get data and type information of selected choice variant.

TTypeInfo GetTypeInfo(void) const

int GetPrimitiveValueInt(void) const

Get data as int.

const CChoiceTypeInfo * GetChoiceTypeInfo(void) const

const CClassTypeInfo * GetClassTypeInfo(void) const

char GetPrimitiveValueChar(void) const

Get char data.

void SetPrimitiveValueUInt(unsigned value)

void SetPrimitiveValueBitString(const CBitString &value)

void GetPrimitiveValueAnyContent(CAnyContentObject &value) const

Get data as CAnyContentObject.

CMemberIterator BeginMembers(void) const

Create class member iterator.

ETypeFamily GetTypeFamily(void) const

Get data type family.

void GetPrimitiveValueString(string &value) const

Get string data.

double GetPrimitiveValueDouble(void) const

Get data as double.

CMemberIterator FindClassMember(const string &memberName) const

Find class member by its name.

void SetPrimitiveValueAnyContent(const CAnyContentObject &value)

CElementIterator BeginElements(void) const

Create container elements iterator.

void SetPrimitiveValueDouble(double value)

TConstObjectPtr GetObjectPtr(void) const

Get pointer to object.

void SetPrimitiveValueInt(int value)

void SetPrimitiveValueOctetString(const vector< char > &value)

const CContainerTypeInfo * GetContainerTypeInfo(void) const

EPrimitiveValueType GetPrimitiveValueType(void) const

Get type of primitive value.

unsigned GetPrimitiveValueUInt(void) const

Get data as unsigned int.

bool IsSet(void) const

Is member assigned a value.

bool IsPrimitiveValueSigned(void) const

Is primitive value signed.

CObjectTypeInfo GetElementType(void) const

Get type information of an element of container.

int64_t Int8

8-byte (64-bit) signed integer

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define END_SCOPE(ns)

End the previously defined scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

#define BEGIN_SCOPE(ns)

Define a new scope.

NCBI_NS_STD::string::size_type SIZE_TYPE

static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)

Convert string to int.

static string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

char32_t TUnicodeSymbol

Unicode character.

static CStringUTF8 AsUTF8(const CTempString &src, EEncoding encoding, EValidate validate=eNoValidate)

Convert into UTF8 from a C/C++ string.

static TUnicodeSymbol CharToSymbol(char ch, EEncoding encoding)

Convert encoded character into Unicode.

static string & ToLower(string &str)

Convert string to lower case – string& version.

@ eEncoding_ISO8859_1

Note: From the point of view of the C++.

const string & GetName(void) const

Get name of this type.

virtual const string & GetModuleName(void) const

Get module name.

const CItemsInfo & GetItems(void) const

size_t GetElementCount(TConstObjectPtr containerPtr) const

void ReserveElements(TObjectPtr containerPtr, size_t new_count) const

bool IsCObject(void) const

Check is this TypeInfo object is kind of CClassTypeInfoBase.

TObjectPtr Create(CObjectMemoryPool *memoryPool=0) const

Create object of this type on heap (can be deleted by operator delete)

void SetIndex(TObjectPtr object, TMemberIndex index, CObjectMemoryPool *pool=0) const

virtual void Delete(TObjectPtr object) const

Delete object.

static const char label[]

size_t serialize(const BV &bv, unsigned char *buf, bm::word_t *temp_block=0, unsigned serialization_flags=0)

Saves bitvector into memory.

size_t deserialize(BV &bv, const unsigned char *buf, bm::word_t *temp_block=0, const bm::bv_ref_vector< BV > *ref_vect=0)

Bitvector deserialization from a memory BLOB.

const TData & GetData(void) const

Get the Data member data.

vector< CRef< CUser_field > > TFields

vector< vector< char > * > TOss

E_Choice Which(void) const

Which variant is currently selected.

void SetClass(const TClass &value)

Assign a value to Class data member.

TData & SetData(void)

Assign a value to Data data member.

void SetNum(TNum value)

Assign a value to Num data member.

const TStr & GetStr(void) const

Get the variant data.

void SetLabel(TLabel &value)

Assign a value to Label data member.

const TData & GetData(void) const

Get the Data member data.

void SetType(TType &value)

Assign a value to Type data member.

void SetData(TData &value)

Assign a value to Data data member.

const TLabel & GetLabel(void) const

Get the Label member data.

vector< CStringUTF8 > TStrs

TId GetId(void) const

Get the variant data.

Definition of all error codes used in objects libraries.

const GenericPointer< typename T::ValueType > T2 value

static SLJIT_INLINE sljit_ins st(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)

static void s_UnpackContainerField(const TUFData &data, CObjectInfo obj)

static void s_UnpackUserField(const CUser_field &uo, CObjectInfo obj)

static void s_SetOSFromBS(TUFDOs &os, CBitString &bs)

static size_t s_SetContainerData(TUFData &data, CConstObjectInfo obj)

static CRef< CUser_field > s_PackAsUserField(CConstObjectInfo obj, const string *label=0)

void UnpackUserObject(const CUser_object &uo, CObjectInfo obj)

CRef< CUser_object > PackAsUserObject(CConstObjectInfo obj)

static void s_UnpackPrimitiveField(const TUFData &data, CObjectInfo obj)

static void s_SetAnyContentFromFields(CAnyContentObject &obj, const TUFData::TFields &fields)

static void s_SetFieldsFromAnyContent(CUser_field &parent, const CAnyContentObject &obj)

static void s_SetBSFromOS(CBitString &bs, const TUFDOs &os)

static void s_SetPrimitiveData(CUser_field &field, CConstObjectInfo obj)

Converts between User-objects and arbitrary other serializable objects.


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