Go to the SVN repository for this file.
61 for(
autofield: fields) {
62 switch(field->Which()) {
66 mName= field->GetName();
69 mTitle= field->GetTitle();
72 const auto& uo = field->GetUser();
73 if(!uo.IsSetType() || !uo.GetType().IsStr() ||
74uo.GetType().GetStr() !=
"Track Data") {
91 const auto& fields = uo.
GetData();
92 for(
autofield: fields) {
93 if(!field->CanGetLabel() || ! field->GetLabel().IsStr()) {
96 if(!field->CanGetData()) {
99 auto key= field->GetLabel().GetStr();
101 const auto&
value= field->GetData();
103 switch(
value.Which()) {
107valueStr =
value.GetStr();
116 if(valueStr.empty()) {
127 const string&
key)
const 130 auto val= mKeyValuePairs.find(
key);
131 if(
val== mKeyValuePairs.end()) {
151 if(description.empty()) {
155 if(!
mType.empty()) {
156ostr <<
" type=\""<<
mType<<
"\"";
159ostr <<
" name=\""<< name <<
"\"";
161 if(!description.empty()) {
162ostr <<
" description=\""<< description <<
"\"";
165 auto key= pair.first;
166 auto value= pair.second;
168 constvector<string> ignoredKeys = {
"description",
"name",
"type"};
169 const autokeyIt = std::find(ignoredKeys.begin(), ignoredKeys.end(),
key);
170 if(keyIt != ignoredKeys.end()) {
173 stringquotesym =
"\"";
177ostr <<
" "<<
key<<
"="<< quotesym <<
value<< quotesym;
190 if(useScore.empty()) {
193 return(useScore ==
"1");
User-defined methods of the data storage class.
User-defined methods of the data storage class.
std::map< std::string, std::string > mKeyValuePairs
bool xImportKeyValuePairs(const CUser_object &)
std::string xGetKeyValue(const std::string &) const
bool Assign(const CSeq_annot &)
bool Write(CNcbiOstream &)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
static string DoubleToString(double value, int precision=-1, TNumToStringFlags flags=0)
Convert double to string.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
const TData & GetData(void) const
Get the Data member data.
const Tdata & Get(void) const
Get the member data.
const TDesc & GetDesc(void) const
Get the Desc member data.
bool IsSetDesc(void) const
used only for stand alone Seq-annots Check if a value has been assigned to Desc data member.
@ e_Name
a short name for this collection
@ e_Title
a title for this collection
@ e_User
user defined object
const struct ncbi::grid::netcache::search::fields::KEY key
const GenericPointer< typename T::ValueType > T2 value
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