NCBI C++ ToolKit
Typedefs | Enumerations | Functions | Variables
keywords_item.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <objects/seqblock/PIR_block.hpp>
#include <objects/seqblock/PRF_block.hpp>
#include <objects/seqblock/GB_block.hpp>
#include <objects/seqblock/SP_block.hpp>
#include <objects/seqblock/EMBL_block.hpp>
#include <objects/seq/MolInfo.hpp>
#include <objects/seqfeat/BioSource.hpp>
#include <objects/seqfeat/SubSource.hpp>
#include <objects/seqfeat/Org_ref.hpp>
#include <objects/seqfeat/OrgName.hpp>
#include <objects/seqfeat/OrgMod.hpp>
#include <objmgr/bioseq_ci.hpp>
#include <objmgr/seqdesc_ci.hpp>
#include <util/static_set.hpp>
#include <algorithm>
#include <objtools/format/formatter.hpp>
#include <objtools/format/text_ostream.hpp>
#include <objtools/format/items/keywords_item.hpp>
#include <objtools/format/context.hpp>
#include <objects/valid/Comment_set.hpp>
#include <objects/valid/Comment_rule.hpp>
#include <objects/misc/sequence_util_macros.hpp>
+ Include dependency graph for keywords_item.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Typedefs

typedef CStaticArraySet< const char *, PCase_CStrTStaticKeywordSet
 

Enumerations

enum  ETechFlags { e_not_set , eEST , eSTS , eGSS }
 

Functions

 DEFINE_STATIC_ARRAY_MAP (TStaticKeywordSet, sc_EST_kw, sc_EST)
 
 DEFINE_STATIC_ARRAY_MAP (TStaticKeywordSet, sc_GSS_kw, sc_GSS)
 
 DEFINE_STATIC_ARRAY_MAP (TStaticKeywordSet, sc_STS_kw, sc_STS)
 
static bool s_CheckSpecialKeyword (const string &keyword, ETechFlags tech)
 
static bool x_OkayToAddKeyword (const string &keyword, vector< string > keywords)
 

Variables

static const char *const sc_EST []
 
static const char *const sc_GSS []
 
static const char *const sc_STS []
 

Typedef Documentation

◆ TStaticKeywordSet

Definition at line 103 of file keywords_item.cpp.

Enumeration Type Documentation

◆ ETechFlags

enum ETechFlags
Enumerator
e_not_set 
eEST 
eSTS 
eGSS 

Definition at line 88 of file keywords_item.cpp.

Function Documentation

◆ DEFINE_STATIC_ARRAY_MAP() [1/3]

DEFINE_STATIC_ARRAY_MAP ( TStaticKeywordSet  ,
sc_EST_kw  ,
sc_EST   
)

◆ DEFINE_STATIC_ARRAY_MAP() [2/3]

DEFINE_STATIC_ARRAY_MAP ( TStaticKeywordSet  ,
sc_GSS_kw  ,
sc_GSS   
)

◆ DEFINE_STATIC_ARRAY_MAP() [3/3]

DEFINE_STATIC_ARRAY_MAP ( TStaticKeywordSet  ,
sc_STS_kw  ,
sc_STS   
)

◆ s_CheckSpecialKeyword()

static bool s_CheckSpecialKeyword ( const string keyword,
ETechFlags  tech 
)
static

Definition at line 121 of file keywords_item.cpp.

References eEST, eGSS, and eSTS.

Referenced by CKeywordsItem::x_GatherInfo().

◆ x_OkayToAddKeyword()

static bool x_OkayToAddKeyword ( const string keyword,
vector< string keywords 
)
static

Definition at line 436 of file keywords_item.cpp.

References NStr::EqualNocase(), and ITERATE.

Referenced by CKeywordsItem::x_AddKeyword().

Variable Documentation

◆ sc_EST

const char* const sc_EST[]
static
Initial value:
= {
"EST", "EST (expressed sequence tag)", "EST PROTO((expressed sequence tag)",
"EST(expressed sequence tag)", "TSR", "UK putts", "expressed sequence tag",
"partial cDNA sequence", "putatively transcribed partial sequence",
"transcribed sequence fragment"
}

Definition at line 97 of file keywords_item.cpp.

◆ sc_GSS

const char* const sc_GSS[]
static
Initial value:
= {
"GSS", "trapped exon"
}

Definition at line 108 of file keywords_item.cpp.

◆ sc_STS

const char* const sc_STS[]
static
Initial value:
= {
"STS", "STS (sequence tagged site)", "STS sequence",
"STS(sequence tagged site)", "sequence tagged site"
}

Definition at line 114 of file keywords_item.cpp.

Modified on Wed Apr 17 13:11:04 2024 by modify_doxy.py rev. 669887