60 const string& linkage_evidence )
64 vector<string> linkage_evidence_vec;
65 NStr::Split(linkage_evidence,
";", linkage_evidence_vec);
72 const vector<string> &linkage_evidence )
89 for (
const auto& evidence : linkage_evidence) {
91 auto it = kStringToEType.find(evidence);
92 if (it == kStringToEType.end()) {
96 new_evid->SetType(it->second);
97 temp_vector.push_back(std::move(new_evid));
101 output_result.insert(end(output_result),
102 make_move_iterator(begin(temp_vector)),
103 make_move_iterator(end(temp_vector)));
108 string & output_result,
126 bool all_converted_okay =
true;
128 for (
const auto& evid : linkage_evidence) {
130 const char* evid_str=
nullptr;
132 if (evid->IsSetType()) {
133 auto it = kETypeToString.find(
static_cast<EType>(evid->GetType()));
134 if (it != kETypeToString.end()) {
135 evid_str = it->second.c_str();
139 evid_str =
"UNKNOWN";
140 all_converted_okay =
false;
142 if( ! output_result.empty() ) {
143 output_result +=
';';
145 output_result += evid_str;
148 return all_converted_okay;
User-defined methods of the data storage class.
list< CRef< CLinkage_evidence > > TLinkage_evidence
static bool GetLinkageEvidence(TLinkage_evidence &output_result, const string &linkage_evidence)
static bool VecToString(string &output_result, const TLinkage_evidence &linkage_evidence)
The NCBI C++ standard methods for dealing with std::string.
#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.
@ eType_proximity_ligation