Go to the SVN repository for this file.
60TStartIDs::iterator k;
63k =
m_IDs.find(qname);
64 if(k !=
m_IDs.end()) {
65 if(k->second !=
value) {
81TStartIDs::const_iterator k;
84k =
m_IDs.find(qname);
85 if(k !=
m_IDs.end())
115 char* raw_line =
NULL;
116 size_traw_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.");
141list<string>::const_iterator item = tokens.begin();
142 stringqname = *item;
147 if(raw_line !=
NULL)
156TStartIDs::const_iterator k;
160 for(k =
m_IDs.begin(); k !=
m_IDs.end(); ++k)
161fprintf(
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