63 return ( !linedata.empty() && linedata[0] ==
"track" );
74 string s =
mData[
"name"];
77 LineData::const_iterator cit = linedata.begin();
78 for ( cit++; cit != linedata.end(); ++cit ) {
101 const string&
key)
const
104 auto valueIt = mData.find(
key);
105 if (valueIt != mData.end()) {
106 return valueIt->second;
119 pTrackdata->
SetType().SetStr(
"Track Data");
130 while ( cit !=
Values().end() ) {
131 pTrackdata->
AddField( cit->first, cit->second );
136 desc.
Set().push_back(user);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
void SetNameDesc(const string &name)
void SetTitleDesc(const string &title)
string ValueOf(const std::string &) const
const TrackData & Values() const
bool WriteToAnnot(CSeq_annot &)
bool ParseLine(const LineData &)
static bool IsTrackData(const LineData &)
string Description() const
std::vector< std::string > LineData
CUser_object & AddField(const string &label, const string &value, EParseField parse=eParse_String)
add a data field to the user object that holds a given value
container_type::const_iterator const_iterator
Include a standard set of the NCBI C++ Toolkit most basic headers.
#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.
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate spaces 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 SplitInTwo(const CTempString str, const CTempString delim, string &str1, string &str2, TSplitFlags flags=0)
Split a string into two pieces using the specified delimiters.
TData & SetData(void)
Assign a value to Data data member.
void SetType(TType &value)
Assign a value to Type data member.
Tdata & Set(void)
Assign a value to data member.
void SetDesc(TDesc &value)
Assign a value to Desc data member.
TUser & SetUser(void)
Select the variant.
constexpr bool empty(list< Ts... >) noexcept
const struct ncbi::grid::netcache::search::fields::KEY key
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.