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

NCBI C++ ToolKit: src/app/netschedule/ns_start_ids.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

60

TStartIDs::iterator k;

63

k =

m_IDs

.find(qname);

64  if

(k !=

m_IDs

.end()) {

65  if

(k->second !=

value

) {

81

TStartIDs::const_iterator k;

84

k =

m_IDs

.find(qname);

85  if

(k !=

m_IDs

.end())

115  char

* raw_line =

NULL

;

116  size_t

raw_length = 0;

119  while

((

read_size

= getline(&raw_line, &raw_length,

f

)) != -1) {

130  if

(s[0] ==

';'

|| s[0] ==

'#'

)

136  if

(tokens.size() != 2) {

138  " file. Line: "

+ s +

". Ignore and continue."

);

141

list<string>::const_iterator item = tokens.begin();

142  string

qname = *item;

147  if

(raw_line !=

NULL

)

156

TStartIDs::const_iterator k;

160  for

(k =

m_IDs

.begin(); k !=

m_IDs

.end(); ++k)

161

fprintf(

f

,

"%s=%u\n"

, k->first.c_str(), k->second);

164  ERR_POST

(

"Cannot serialize start queue job ids into file "

+

unsigned int Get(const string &qname)

void Set(const string &qname, unsigned int value)

void Serialize(void) const

void x_SerializeNoLock(void) const

CNSStartIDs(const string &data_dir_name, bool diskless)

Include a standard set of the NCBI C++ Toolkit most basic headers.

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

static string MakePath(const string &dir=kEmptyStr, const string &base=kEmptyStr, const string &ext=kEmptyStr)

Assemble a path from basic components.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)

Split a string using specified delimiters.

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

Convert string to unsigned int.

static string TruncateSpaces(const string &str, ETrunc where=eTrunc_Both)

Truncate whitespace in a string.

const GenericPointer< typename T::ValueType > T2 value

Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...

const string kStartJobIDsFileName("STARTJOBIDS")

static size_t read_size(CNcbiIstream &stream, const char *name)


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