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

NCBI C++ ToolKit: src/objtools/data_loaders/genbank/blob_id.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

41

: m_Sat(-1), m_SubSat(0), m_SatKey(0)

46  TSat

sat = NStr::StringToNumeric<TSat>(ssat);

47  TSatKey

satkey = NStr::StringToNumeric<TSatKey>(ssatkey);

89  if

(

str

.find(

",sub="

) != string::npos) {

90  if

( sscanf(

str

.c_str(),

"Blob(%d,%d,sub=%d)"

, &sat, &sat_key, &sub_sat) != 3)

92  "\""

+

str

+

"\" is not a valid Genbank BlobId"

);

95  if

( sscanf(

str

.c_str(),

"Blob(%d,%d)"

, &sat, &sat_key) != 2)

97  "\""

+

str

+

"\" is not a valid Genbank BlobId"

);

102

blobid->SetSubSat(sub_sat);

103

blobid->SetSatKey(sat_key);

111  return id

&& *

this

== *id;

bool IsMainBlob(void) const

TSatKey GetSatKey() const

static CBlob_id * CreateFromString(const string &str)

CNcbiOstream & Dump(CNcbiOstream &ostr) const

bool operator<(const CBlobId &blob_id) const

TSubSat GetSubSat() const

string ToPsgId(void) const

string ToString(void) const

Get string representation of blob id.

bool operator==(const CBlobId &blob_id) const

Data loader exceptions, used by GenBank loader.

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

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

static const char * str(char *buf, int n)

#define NCBI_THROW(exception_class, err_code, message)

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

bool LessByTypeId(const CBlobId &id2) const

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

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

static bool SplitInTwo(const CTempString str, const CTempString delim, string &str1, string &str2, TSplitFlags flags=0)

Split a string into two pieces using the specified delimiters.


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