50 # error TYPICAL_FQ should not be defined yet
54 #define TYPICAL_FQ(x) { eFQ_##x, #x }
57 static const TFeatQualToName kFeatQualToNames[] = {
186 TFeatQualToNameMap::const_iterator find_iter =
187 kFeatQualToNameMap.find(eFeatureQualifier);
188 if( find_iter != kFeatQualToNameMap.end() ) {
189 return find_iter->second;
192 return "UNKNOWN_FEAT_QUAL";
198 # error TYPICAL_SQ should not be defined yet
202 #define TYPICAL_SQ(x) { eSQ_##x, #x }
205 static const TSourceQualToName kSourceQualToNames[] = {
319 TSourceQualToNameMap::const_iterator find_iter =
320 kSourceQualToNameMap.find(eSourceQualifier);
321 if( find_iter != kSourceQualToNameMap.end() ) {
322 return find_iter->second;
325 return "UNKNOWN_SOURCE_QUAL";
331 switch( eOrgModSubtype )
337 # error CASE_ORGMOD should NOT be already defined here.
340 #define CASE_ORGMOD(x) case COrgMod::eSubtype_##x: return eSQ_##x;
389 switch( eSubSourceSubtype ) {
393 # error DO_SS should NOT have already been defined here.
396 #define DO_SS(x) case CSubSource::eSubtype_##x: return eSQ_##x;
416 DO_SS(transposon_name);
417 DO_SS(insertion_seq_name);
421 DO_SS(endogenous_virus_name);
423 DO_SS(environmental_sample);
424 DO_SS(isolation_source);
427 DO_SS(collection_date);
429 DO_SS(identified_by);
430 DO_SS(fwd_primer_seq);
431 DO_SS(rev_primer_seq);
432 DO_SS(fwd_primer_name);
433 DO_SS(rev_primer_name);
436 DO_SS(linkage_group);
438 DO_SS(whole_replicon);
class CStaticArrayMap<> is an array adaptor that provides an STLish interface to statically-defined a...
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
CTempString GetStringOfSourceQual(ESourceQualifier eSourceQualifier)
Given a ESourceQualifier, this returns the qualifier name.
ESourceQualifier GetSourceQualOfOrgMod(COrgMod::ESubtype eOrgModSubtype)
Translate an org-mod subtype into a sourcequalifier.
ESourceQualifier GetSourceQualOfSubSource(CSubSource::ESubtype eSubSourceSubtype)
Translate a subsource subtype into a sourcequalifier.
CTempString GetStringOfFeatQual(EFeatureQualifier eFeatureQualifier)
Given a EFeatureQualifier, this returns the qualifier name.
@ eSQ_NUM_SOURCE_QUALIFIERS
@ eSQ_endogenous_virus_name
@ eFQ_NUM_SOURCE_QUALIFIERS
#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 const char label[]
@ eSubtype_other
ASN5: old-name (254) will be added to next spec.
@ eSubtype_nat_host
natural host of this specimen
#define DEFINE_STATIC_ARRAY_MAP(Type, Var, Array)
Template structure SStaticPair is simlified replacement of STL pair<> Main reason of introducing this...