& autoSqlColCounter)
93readingTable =
false;
102 string format, name, description;
107autoSqlColCounter,
format, name, description));
114readingTable =
true;
132 if(
key==
"fieldCount") {
146 boolreadingTable =
false;
147 size_tautoSqlColCounter(0);
149 while(!istr.eof()) {
176 while(line.empty() && istr.good()) {
177std::getline(istr, line);
196mWellKnownFields.SetLocation(
197columnData, mBedFlags, feat, messageHandler) &&
198mWellKnownFields.SetTitle(
199columnData, feat, messageHandler) &&
200mWellKnownFields.SetRegion(
201columnData, feat, messageHandler) &&
202mWellKnownFields.SetDisplayData(
203columnData, mBedFlags, feat, messageHandler) &&
204mCustomFields.SetUserObject(
205columnData, mBedFlags, feat, messageHandler);
218 if( !mWellKnownFields.Validate(messageHandler) ||
219!mCustomFields.Validate(messageHandler)) {
222 if(mColumnCount != mWellKnownFields.NumFields() + mCustomFields.NumFields()) {
226 "AutoSql: The declared column count differs from the actual column count");
227messageHandler.Report(
fatal);
void Append(const CAutoSqlCustomField &)
CAutoSqlStandardFields mWellKnownFields
size_t ColumnCount() const
bool ReadSeqFeat(const CBedColumnData &, CSeq_feat &feat, CReaderMessageHandler &) const
static bool xParseAutoSqlColumnDef(const string &, string &, string &, string &)
CAutoSqlCustomFields mCustomFields
string xReadLine(CNcbiIstream &)
map< string, string > mParameters
bool Validate(CReaderMessageHandler &) const
void xProcessLine(const string &line, bool &readingTable, size_t &autoSqlColCounter)
bool Load(CNcbiIstream &, CReaderMessageHandler &)
namespace ncbi::objects::
The NCBI C++ standard methods for dealing with std::string.
static void fatal(const char *msg,...)
@ eDiag_Error
Error message.
#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::istream CNcbiIstream
Portable alias for istream.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate whitespace in a string (in-place)
static string & Replace(const string &src, const string &search, const string &replace, string &dst, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a string.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
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.
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.
static string & ToLower(string &str)
Convert string to lower case â string& version.
@ fSplit_MergeDelimiters
Merge adjacent delimiters.
The blob sat and sat key Both must be positive integers</td > n< td > Non empty string The interpretation of the blob id depends on a processor Cassandra n processor expects the following format
const struct ncbi::grid::netcache::search::fields::KEY key
const GenericPointer< typename T::ValueType > T2 value
bool ProcessTableRow(size_t, const string &, const string &)
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