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/ncbi__dbsvcmapper_8cpp_source.html below:

NCBI C++ ToolKit: src/corelib/ncbi_dbsvcmapper.cpp Source File

44  if

(

this

== &that || *

this

== that) {

53

ESubStatus name_status, host_status, port_status;

55  bool

this_name_is_wild =

m_Name

.empty() ||

m_Name

== service;

56  bool

that_name_is_wild = that.

m_Name

.empty() || that.

m_Name

== service;

57  if

(this_name_is_wild && that_name_is_wild) {

58

name_status = eBothBlank;

59

}

else if

(this_name_is_wild || that_name_is_wild) {

60

name_status = eOneBlank;

68

host_status = eBothBlank;

70

host_status = eOneBlank;

78

port_status = eBothBlank;

80

port_status = eOneBlank;

89

}

else if

(name_status ==

eMatch

) {

103  string msg

= (

"Unsupported endpoint key character " 112  FORMAT

(

msg

<<

" at position "

<< pos));

119

pos = address.

find

(

':'

);

125

address = address.

substr

(0, pos);

131  if

(

count

(address.

begin

(), address.

end

(),

'.'

) != 3) {

132  string msg

=

"Wrong number of components in IP address "

+ address;

146  for

(

int i

= 0;

i

< 4; ++

i

) {

150

pos = address.

find

(

'.'

);

151

component = address.

substr

(0, pos);

156

component = address.

substr

(pos + 1, pos2 - pos - 1);

161

component = address.

substr

(pos + 1);

178  auto

host =

key

.GetHost();

179  const unsigned char

*

b

= (

const unsigned char

*) &host;

182  auto

port =

key

.GetPort();

192

list<string> servers;

197  for

(

const string

& it : servers) {

199  auto lb

= exclusions.lower_bound(options->back());

200  if

(

lb

!= exclusions.end() && (*lb)->GetName() == name) {

CDBServerOption – CDBServer extended with additional information that helps maintain a balanced pool ...

@ fState_Excluded

Excluded by DBAPI.

bool Matches(const CDBServer &that, CTempString service) const

Lightweight representation of just a host and a port.

CEndpointKey(const CEndpointKey &that)

CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...

virtual void GetServerOptions(const string &service, TOptions *options)

Get an annotated list of all servers for the given service.

list< CRef< CDBServerOption > > TOptions

virtual void GetServersList(const string &, list< string > *serv_list) const

Get list of all servers for the given service disregarding any exclusions.

static void Set(ECode code)

Set last error using native error code enum.

#define NCBI_THROW2(exception_class, err_code, message, extra)

Throw exception with extra parameter.

#define FORMAT(message)

Format message using iostreams library.

uint8_t Uint1

1-byte (8-bit) unsigned integer

uint32_t Uint4

4-byte (32-bit) unsigned integer

uint16_t Uint2

2-byte (16-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

const_iterator end() const

Return an iterator to the string's ending position (one past the end of the represented sequence)

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

Convert string to a numeric value.

CTempString substr(size_type pos) const

Obtain a substring from this string, beginning at a given offset.

size_type find_first_not_of(const CTempString match, size_type pos=0) const

Find the first occurrence of any character not in the matching string within the current string,...

int TStringToNumFlags

Bitwise OR of "EStringToNumFlags".

size_type find(const CTempString match, size_type pos=0) const

Find the first instance of the entire matching string within the current string, beginning at an opti...

static string CEncode(const CTempString str, EQuoted quoted=eQuoted)

Encode a string for C/C++.

size_type size(void) const

Return the length of the represented array.

const_iterator begin() const

Return an iterator to the string's starting position.

@ fConvErr_NoErrMessage

Set errno, but do not set CNcbiError message on error.

@ fConvErr_NoThrow

Do not throw an exception on error.

const struct ncbi::grid::netcache::search::fields::KEY key

ostream & operator<<(ostream &os, const CEndpointKey &key)

Defines NCBI C++ Toolkit portable error codes.

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

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


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